private void Awake() { controller = GetComponent <CharacterController>(); statsManager = GetComponent <PlayerStatsManager>(); iScanner = GetComponent <InteractableScanner>(); playerObjectInteract = GetComponent <PlayerObjectInteract>(); alignCamera = Camera.main.transform; bat.SetActive(false); dracula.SetActive(true); CurrentStamina = stats.MaxStamina; MenuManager.OnLevelStart += ResetStamina; }
// Use this for initialization private void Start() { playScript = GetComponent <PlayerObjectInteract>(); originSize = new Vector3(1, 1, 1); pickedSize = new Vector3(1.2f, 1.2f, 1.2f); }