// Use this for initialization void Awake() { if (instance == null) { instance = this; } else if (instance != this) { Destroy(this); } cc = gameObject.GetComponent <CharacterController>(); targetInvalid = InvalidTargetClicked; }
// Use this for initialization void Awake() { if (instance == null) { instance = this; } else if (instance != this) { Destroy(this); } playCont = GetComponent <PlayerContollerEC>(); playerState = ePlayerState.idle; DialogueManager.instance.initiateDialogueEvent += SetPlayerInDialogue; DialogueManager.instance.endDialogueEvent += SetPlayerOutOfDialogue; EndCubeScript.instance.endLevelFeedback += DisableMovement; }