Setup
Install UniFlux
You can Download at Unity Asset Store
You can use the .unityPackage in releases
You can use the *.tzg in releases and add in PackageManager
You can add in PackageManager (How to install package from git URL)
https://github.com/xavierarpa/UniFlux.gitYou can install via openupm CLI
openupm add com.xavierarpa.unifluxYou can install via npm
npm i com.xavierarpa.unifluxGenerate your Scritps
using UniFlux;
using UnityEngine;
public class Test : MonoFlux
{
private void Start()
{
// Allows you to call any method subscribe with "0" Key
"0".Dispatch();
}
[MethodFlux("0")] private void Tester()
{
Debug.Log("Hello world");
}
}You can put both in a scene and see if they both receive the event
That's all !
Here another sample making subscriptions manually
Last updated