コード例 #1
0
ファイル: Farm.cs プロジェクト: Lukasz199312/ClickCraft
 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();
     }
 }
コード例 #2
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());
     }
     else
     {
         iProduce = new NoProduce();
         initializeProduce = new NoInitializeProduce();
     }
 }
コード例 #3
0
ファイル: Tree.cs プロジェクト: Lukasz199312/ClickCraft
    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();
        }
    }