public override void OnTileEnter(I_Tile _Tile) { I_Unit unit = _Tile.GetUnit(); if (unit != null && unit is UnitEnemy) { unit.Kill(); Kill(); } }
protected override void Update() { base.Update(); I_Unit unit = GetTile().GetUnit(); if (unit != null && unit is UnitEnemy) { unit.Kill(); Kill(); } }