Пример #1
0
 public void SetFrictionForTile(int X, int Y, int Z, FrictionValue val)
 {
     if (isOnGrid(X, Y, Z))
     {
         _tile [X, Y, Z].Friction = val;
     }
 }
Пример #2
0
 public Tile(GameObject obj, IVector3 pos)
 {
     _position     = pos;
     _itemType     = Item.EMPTY;
     _itemAttached = null;
     _obj          = obj;
     _frictionVal  = FrictionValue.LOW;
     _direction    = ItemDirection.LEFT;
 }