Example #1
0
    void Awake()
    {
        spawnDispatcher = GetComponent <SFXDispatcher>();
        toyBodyFactory  = GetComponent <ToyBodyFactory>();

        toyBodyFactory.Spawn += OnSpawn;
    }
Example #2
0
 private void Awake()
 {
     Instance = this;
 }