Пример #1
0
    void Awake()
    {
        controls = new Player1_Controls();
        width    = gameObject.transform.localScale.x;


        controls.Gameplay.Move.performed += ProcessMovement;
        controls.Gameplay.Move.canceled  += StopMovement;
    }
Пример #2
0
    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);
    }
Пример #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++;
         * }*/
    }
Пример #4
0
 private void Start()
 {
     controls = new Player1_Controls();
     controls.Gameplay.Interact.performed += ctx => Interact();
 }