Beispiel #1
0
 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();
     }
 }
Beispiel #3
0
    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();
        }
    }
 // Use this for initialization
 void Start()
 {
     iProduce = new ConstructionProduce();
 }