Server.OppositionGroup.IsEnemy C# (CSharp) Метод

IsEnemy() публичный Метод

public IsEnemy ( object from, object target ) : bool
from object
target object
Результат bool
		public bool IsEnemy( object from, object target )
		{
			int fromGroup = IndexOf( from );
			int targGroup = IndexOf( target );

			return ( fromGroup != -1 && targGroup != -1 && fromGroup != targGroup );
		}