void Start() { if (InConstruction.active == true) { Debug.Log("ACTIVE TEST"); iProduce = new ConstructionProduce(); initializeProduce = new InitializeConstructionProduction(); } else { Debug.Log("FALSE TEST"); iProduce = new NormalProduce(); initializeProduce = new InitializeNormalProduction(); } }
public override void Initialize() { if (InConstruction.active == true) { iProduce = new ConstructionProduce(); initializeProduce = new InitializeConstructionProduction(); MoveTimerText moveTimer = this.gameObject.AddComponent<MoveTimerText>(); moveTimer.Initialize(); ((ConstructionProduce)iProduce).setTimer(moveTimer.getTimer()); } else { iProduce = new NoProduce(); initializeProduce = new NoInitializeProduce(); } }
public override void Initialize() { if (InConstruction.active == true) { iProduce = new ConstructionProduce(); initializeProduce = new InitializeConstructionProduction(); MoveTimerText moveTimer = this.gameObject.AddComponent<MoveTimerText>(); moveTimer.Initialize(); ((ConstructionProduce)iProduce).setTimer(moveTimer.getTimer()); //GetComponent<TouchedObject>().BuildingActionGUI = tmpBuildActionGui; } else { iProduce = new TreeProduce(); initializeProduce = new NoInitializeProduce(); } }