Exemple #1
0
		public void AttackUnit(BaseUnit target)
		{
			if (target.IsAlive())
				target.ReceiveAttack(this);
			else
				resourceContainer += target.ReceiveLootStrike(this);


			_timeSincePreviousAttack = 0f;
		}
Exemple #2
0
		public bool CanTarget(BaseUnit potentialTarget)
		{
			return potentialTarget.gameObject != null && (potentialTarget.IsAlive() || potentialTarget.ContainsLoot());
		}