예제 #1
0
    // Use this for initialization
    void Awake()
    {
        if (instance == null)
        {
            instance = this;
        }
        else if (instance != this)
        {
            Destroy(this);
        }

        cc            = gameObject.GetComponent <CharacterController>();
        targetInvalid = InvalidTargetClicked;
    }
예제 #2
0
    // 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;
    }