示例#1
0
 public bool IsTrafficAllowed(MyCharacterController src)
 {
     if (this.Type == TileBasis.TileType.WALL && src.Parameter.AllowWalkInWall ) {
         return true;
     }
     if (src is PlayerController)
     {
         return this.Type == TileBasis.TileType.ROAD;
     }
     else if(src.GetType() == typeof(EnemyController)){
         return IsOpenRouteForEnemy;
     }
     return false;
 }