Skip to content

Instantly share code, notes, and snippets.

@flushpot1125
Created June 11, 2016 00:58
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Part of Buttons.cs provided by Occipital Team
protected IEnumerator AssignGameEvent()
{
while (Manager._structureManager==null)
{
yield return new WaitForEndOfFrame();
}
//the manager has arrived, wait for instructions.
this.ButtonClickedEvent += Manager._structureManager.HandleButtonClickedEvent;
//set initial state on startup
this.gameState = Manager._structureManager.gameState;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment