void Awake() { if (instance == null) { instance = this; } else { Destroy(gameObject); } }
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; } }
private void Start() { viewManager = new GameViewManager(viewConfig, Canvasteansform); }
void Start() { inputNumOfFloors = GetComponentInChildren <InputField>(); gameView = FindObjectOfType <GameViewManager>(); }