Exemple #1
0
 protected override void Start()
 {
     base.Start();
     StageManager.Instance.allSelectables.Add(this);
     buildingState      = new IdleStateB(building, false);
     isFinishedBuilding = true;
     ReawakenWO();
 }
Exemple #2
0
 protected override void Start()
 {
     base.Start();
     buildingSpaceIsFree = false; //buildings that need to go on a plant base should have a default value of false, unlike other buildings
     CreateFruitList();
     DetermineFruitVisibilityParameter();
     paramManager.OnHPChangeDelegate += DetermineFruitVisibility;
     if (autoComplete)
     {
         StageManager.Instance.allSelectables.Add(this);
         buildingState      = new IdleStateB(building, false);
         isFinishedBuilding = true;
         GiveThisWorldInfoCanvasStats();
         ReawakenWO();
         worldObject.TakeDamage(-paramManager.MaxHitPoints, transform.position, worldObject);
     }
 }