Esempio n. 1
0
 protected virtual void GridCreated()
 {
     SetCoordinates(GridManager.Instance.GetCoordinatesFromWorldPosition(transform.position));
     UID = GameManager.Instance.GetNewUID(this);
     if (_parentObject != null)
     {
         _parentObject.AttachObject(this);
     }
     else
     {
         GridManager.Instance.PlaceObject(this);
     }
 }