MAKER X TÜRKİYE

  • Anasayfa

  • Eğitim Takvimi

  • İ.S. Robotik Kodlama - Maker X

  • Oyun Uygulama Geliştirme

  • Temel Robotik Kodlama

  • Galeri

  • Hakkımızda

  • İletişim

  • basvuru

  • More

    Bunun nasıl çalıştığını görmek için sitenizi yayınlayın ve canlı sitenize gidin.
    1. MAKER X FORUM
    2. Arduino 3.seviye
    3. ^d KOD
    Ara
    emirhanakin13
    29 Ara 2018

    ^d KOD

    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()

    {

    }




    }

    0 yorum
    0

    © 2023 by  Maker X. Proudly created with VolTurk.com               Telefon: 0 5058588523        Kemalpaşa  / İzmir