SwitchComponent
Overview
The switch component selects which child component to trigger from an option that is set by the game. The option is ALWAYS the name of the component that is required to trigger.
Inspector Elements
Code Support
The Switch component provides the following event actions to be called from code,
- SetSwitch
Fabric.EventManager.Instance.PostEvent("NAME OF EVENT", Fabric.EventAction.SetSwitch, "CHILD COMPONENT NAME", gameObject);
Watch the following video explaining more about this Component
https://www.youtube.com/watch?v=pS--L_1zUGY&list=PLjo4vf11pt-MWtpdnyJdqJ41khf4YhS8y&index=18