void Awake()
    {
        controls = new Player1_Controls();
        width    = gameObject.transform.localScale.x;


        controls.Gameplay.Move.performed += ProcessMovement;
        controls.Gameplay.Move.canceled  += StopMovement;
    }
    void Awake()
    {
        controls = new Player1_Controls();
        player   = gameObject.GetComponent <Player1_Movement>();

        controls.Gameplay.Interact.performed += ctx => Interact();

        newColor = new Color(0.5f, 1f, 1f, 1f);
    }
Beispiel #3
0
    //public InputTest;
    void Start()
    {
        i     = 0;
        queue = new Queue <string>();
        dialogueOptions.SetActive(false);
        playerColl = player.GetComponent <PlayerCollider>();
        controls   = playerColl.controls;
        controls.Gameplay.Next.performed += ctx => InteractDiag();

        /*foreach(Transform child in dialogueOptions.transform.GetChild(i))
         * {
         *  responsesList[i] = child.GetComponent<Button>();
         *  i++;
         * }*/
    }
Beispiel #4
0
 private void Start()
 {
     controls = new Player1_Controls();
     controls.Gameplay.Interact.performed += ctx => Interact();
 }