Пример #1
0
 public int getRotation()
 {
     if (rotation == null)
     {
         rotation = RoadPieceHelper.getRotation(type);
     }
     return((int)rotation);
 }
Пример #2
0
 public GameObject getPrefab()
 {
     if (!isPrefabActive())
     {
         displayedObject = Object.Instantiate(RoadPieceHelper.getRoadPrefab(type));
     }
     return(displayedObject);
 }