Esempio n. 1
0
 // Use this for initialization
 void Start()
 {
     character = GetComponent <CharacterBuildScript>();
     movement = GetComponent<CharacterMoveScript>();
     GameObject game = GameObject.FindGameObjectWithTag("GameController");
     cameraController = game.GetComponent<CameraControllerScript>();
     settings = game.GetComponent<PlayerSettingsScript>();
     ability1IsHeld = false;
     ability2IsHeld = false;
 }
Esempio n. 2
0
 void Start()
 {
     movement = GetComponent<CharacterMoveScript>();
 }
 public void RegisterPlayer(GameObject player)
 {
     character = player.transform.Find("CharacterCamera").GetComponent<CharacterLookScript>();
     telescope = player.transform.Find("TelescopeCamera").GetComponent<TelescopeScript>();
     movement = player.GetComponent<CharacterMoveScript>();
 }