Beispiel #1
0
 public void ExitPart(Transform player)
 {
     open   = false;
     Player = null;
     duoUI.SetVisible(false);
     player.GetComponent <FirstPersonController>().enabled = true;
     player.GetComponent <playerAnimManager>().enabled     = true;
     player.GetComponent <BuildingManager>().enabled       = true;
 }
Beispiel #2
0
 public void UserPart(Transform player)
 {
     open   = true;
     Player = player;
     duoUI  = PartDuoUIScene.instance;
     duoUI.SetVisible(true);
     player.GetComponent <FirstPersonController>().enabled = false;
     player.GetComponent <playerAnimManager>().enabled     = false;
     player.GetComponent <BuildingManager>().enabled       = false;
     Camera.main.transform.localRotation = Quaternion.identity;
 }