using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class flappy : MonoBehaviour {
bool oyun=false;
int x=0;
float y=5.5f;
public GameObject objem;
public Text yazi;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
if (Input.GetKeyDown (KeyCode.RightArrow)) {
objem.transform.position += new Vector3 (1, 0, 0);
}
if (Input.GetKeyDown (KeyCode.LeftArrow)) {
objem.transform.position += new Vector3 (-1, 0, 0);
}
if (Input.GetKeyDown (KeyCode.UpArrow)) {
objem.transform.position += new Vector3 (0, 0, 1);
}
if (Input.GetKeyDown (KeyCode.DownArrow)) {
objem.transform.position += new Vector3 (0, 0, -1);
}
}
public void butontiklama()
{
}
}