Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class PlayerControl : MonoBehaviour {
- var moveUP :click;
- var moveDown :keycode;
- var moveLeft :keycode;
- var moveright :Keycode;
- var speed : float = 10;
- // Update is called once per frame
- void Update() {
- if (input.GetKey(moveUp))
- }
- else if(input.GetKey(moveDown))
- {
- }
- {
- else if(Input.GameKey(moveleft))
- }
- {
- else if(Input.GameKey(moveright))
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement