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); }
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); } }
public override void OnCreate(Tower owner) { BaseBuildingController.SetActive(this.LoopFx, true); BaseBuildingController.SetActive(this.ExplodeFx, false); BaseBuildingController.SetActive(this.FlameFx, false); }