Guest User

Untitled

a guest
May 17th, 2020
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.37 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. public class PlayerControl : MonoBehaviour
  6. {
  7.    
  8.     void Start()
  9.     {
  10.        
  11.     }
  12.  
  13.     void Update()
  14.     {
  15.         controlButtons();
  16.     }
  17.    void controlButtons()
  18.     {
  19.         if (Input.GetKey(KeyCode.LeftArrow))
  20.         {
  21.             print("hello");
  22.         }
  23.     }
  24.  
  25. }
Advertisement
Add Comment
Please, Sign In to add comment