示例#1
0
 public void SetStatus(int dir, bool enabled)
 {
     Status[dir] = enabled;
     if (neighbourManager != null)
     {
         GetComponent <TileObject>().UpdateSprite();
         neighbourManager.NotifyMyNeighbour(dir);
     }
 }
示例#2
0
 public void SetStatus(int dir, bool enabled)
 {
     Status[dir] = enabled;
     if (neighbourManager != null)
     {
         //needs check because of inspector changes
         GetComponent <TileObject>().UpdateSprite();
         neighbourManager.NotifyMyNeighbour(dir);
     }
 }