protected virtual void gameObjectOperations(Train train)
 {
     GameObjectOperations.To(main)
     .Hide()
     .SetRotation(train.gameObject);
     GameObjectOperations.To(train.gameObject)
     .SetParent(main)
     .SetPosition(main);
 }
 protected override void gameObjectOperations(Train train)
 {
     main = new GameObject(originalMain.name + "@" + train.name.Split('@')[1]);
     GameObjectOperations.To(main).SetPosition(originalMain);
     base.gameObjectOperations(train);
 }
Exemple #3
0
 private Train clone(Train train, string newName)
 {
     return(GameObjectOperations.To(train.gameObject).Clone(newName).SetTag(NETWORK_TRAIN_TAG).GameObject.GetComponent <Train>());
 }
Exemple #4
0
 private Camera clone(Camera camera)
 {
     return(GameObjectOperations.To(camera.gameObject).Clone(FREE_CAMERA_NAME).RemoveComponent <AudioListener>().GameObject.GetComponent <Camera>());
 }