public void AddMonsterUnit(TD.Unit.MonsterUnit unit) { if (monsterUnit == null) { monsterUnit = new List <MonsterUnit>(); } monsterUnit.Add(unit); }
public void Destroy() { if (this.OnDestroyCallback != null) { OnDestroyCallback(this); } this._monsterUnit = null; this.OnDestroyCallback = null; }
public void RemoveMonsterUnit(TD.Unit.MonsterUnit unit) { if (monsterUnit != null) { int mIndex = monsterUnit.IndexOf(unit); if (mIndex >= 0) { monsterUnit.RemoveAt(mIndex); } } }
public void SetUp(STPBullet stpBullet, MonsterUnit monsterUnit) { _sTPBullet = stpBullet; _monsterUnit = monsterUnit; lastPosition = _monsterUnit.transform.position; }