Exemplo n.º 1
0
 public override void OnDead()
 {
     BaseBuildingController.SetActive(this.LoopFx, false);
     BaseBuildingController.SetActive(this.ExplodeFx, true);
     this.ExplodeFx.transform.rotation = this.RotationReference.rotation;
     BaseBuildingController.SetActive(this.FlameFx, true);
 }
Exemplo n.º 2
0
 protected override void OnCreate()
 {
     this.data              = base.AddUnitComponent <MonsterDataManager>(!Singleton <PvpManager> .Instance.IsInPvp);
     this.atkController     = base.AddUnitComponent <MonsterAttackController>();
     this._towerIndicator   = TowerAttackIndicator.TryAddIndicator(this);
     this._DurationWoundMgr = base.AddUnitComponent <DurationWoundManager>();
     this._towerController  = base.GetComponentInChildren <BaseBuildingController>();
     base.OnCreate();
     if (this._towerController)
     {
         this._towerController.OnCreate(this);
     }
 }
Exemplo n.º 3
0
 public override void OnCreate(Tower owner)
 {
     BaseBuildingController.SetActive(this.LoopFx, true);
     BaseBuildingController.SetActive(this.ExplodeFx, false);
     BaseBuildingController.SetActive(this.FlameFx, false);
 }