public static void Init(IPlayBehaviour gameController) { if (Play.gameController == null) { Play.gameController = gameController; Play.Wire(); } else { throw new Exception("Dividat Play already initialized."); } }
void Start() { playBehaviour = GameObject.FindGameObjectWithTag("PlayController").GetComponent <IPlayBehaviour>(); }