Exemplo n.º 1
0
 void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     else
     {
         Destroy(gameObject);
     }
 }
Exemplo n.º 2
0
    void Awake()
    {
        Assert.IsNotNull(buildMenuView, "buildMenuView is set to null.");
        Assert.IsNotNull(buildingPopupView, "buildingPopupView is set to null.");
        Assert.IsNotNull(moveConfirmButtonView, "moveConfirmButtonView is set to null.");

        if (instance == null)
        {
            instance = this;
        }
    }
Exemplo n.º 3
0
 private void Start()
 {
     viewManager = new GameViewManager(viewConfig, Canvasteansform);
 }
Exemplo n.º 4
0
 void Start()
 {
     inputNumOfFloors = GetComponentInChildren <InputField>();
     gameView         = FindObjectOfType <GameViewManager>();
 }