DemoUI.Start C# (CSharp) Method

Start() public method

public Start ( ) : void
return void
    void Start()
    {
        // if you plan on listening to the spawn/despawn events, Start is a good time to add your listeners.
        TrashMan.recycleBinForGameObject( cubePrefab ).onSpawnedEvent += go => Debug.Log( "spawned object: " + go );
        TrashMan.recycleBinForGameObject( cubePrefab ).onDespawnedEvent += go => Debug.Log( "DEspawned object: " + go );
    }