Exemple #1
0
    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;
    }
Exemple #2
0
 // 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);
 }