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