// 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; }
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>(); }