void SetInitialReferences() { anime = monster.GetComponent <Animator>(); playerMaster = GetComponent <Player_Master>(); firstPersonController = GetComponent <NewFirstPersonController>(); walk = false; run = false; }
void SetInitialReferences() { gameManagerMaster = GetComponent <GameManager_Master>(); if (player != null) { playerMaster = player.GetComponent <Player_Master>(); playerController = player.GetComponent <NewFirstPersonController>(); } else { Debug.LogWarning("Player is not assigned on GameManager_PlayerControllerToggle"); } }