Back
Close

Unity3D and Fungus Tutorial: PickUps

marcosecchi
16.1K views
Previous: Introduction Next: Sending a Message

Flowchart Communication

Two Flowchart in a scene are independent, so how can make them communicate? In particular, we need to let the MainFlowchart know that a coin has been picked up, an event that at the moment is known only by the coin Flowchart.

Using Messages

The quickest way to communicate between _Flowchart_s is the Send Flowchart command, that sends a message that can be listened by the same Flowcart or by another one.

In our game, when a coin will be picked up, the corresponding Flowchart will send a message that will be intercepted by the MainFlowchart, that will store points gained.

Create your playground on Tech.io
This playground was created on Tech.io, our hands-on, knowledge-sharing platform for developers.
Go to tech.io
codingame x discord
Join the CodinGame community on Discord to chat about puzzle contributions, challenges, streams, blog articles - all that good stuff!
JOIN US ON DISCORD
Online Participants