Esempio n. 1
0
 void Start()
 {
     spriteRenderer = GetComponent <SpriteRenderer>();
     fizik          = GetComponent <Rigidbody2D>();
     oyunControl    = GameObject.FindGameObjectWithTag("oyunControl").GetComponent <oyunKontrol>();
     sesler         = GetComponents <AudioSource>();
     highScore      = PlayerPrefs.GetInt("enyuksekpuan");
 }
Esempio n. 2
0
    void Start()
    {
        spriteRenderer = GetComponent <SpriteRenderer>();
        fizik          = GetComponent <Rigidbody2D>();
        oyunKontrol    = GameObject.FindGameObjectWithTag("oyunkontroltagi").GetComponent <oyunKontrol>();
        //ses = GetComponent<AudioSource>();

        sesler       = GetComponents <AudioSource>();
        enYuksekPuan = PlayerPrefs.GetInt("enyuksekpuankayit");
    }
Esempio n. 3
0
    // Start is called before the first frame update
    void Start()
    {
        oKontrol = GameObject.Find("_Scripts").GetComponent <oyunKontrol>();
        hedef    = GameObject.Find("oyuncu");
        GameObject imageObject = GameObject.FindGameObjectWithTag("can");

        can = imageObject.GetComponent <Image>();
        GameObject textObject = GameObject.FindGameObjectWithTag("skor");

        skor     = textObject.GetComponent <Text>();
        sayaccan = 0f;
    }
Esempio n. 4
0
    //public AudioClip carpmaSesi;
    //public AudioClip puanSesi;
    //public AudioClip kanatSesi;
    // Start is called before the first frame update
    void Start()
    {
        spriteRenderer  = GetComponent <SpriteRenderer>();
        fizik           = GetComponent <Rigidbody2D>();
        oyunKontrolItem = GameObject.FindGameObjectWithTag("oyunKontrolTag").GetComponent <oyunKontrol>();
        sesler          = GetComponents <AudioSource>();

        reklamSayaci = PlayerPrefs.GetInt("reklam_sayaci", 0);
        reklamSayaci++;
        reklamSayaci %= 5;
        PlayerPrefs.SetInt("reklam_sayaci", reklamSayaci);
    }
Esempio n. 5
0
    void Start()
    {
        spriteRenderer = GetComponent <SpriteRenderer>();
        fizik          = GetComponent <Rigidbody2D>();

        oyunKontrol = GameObject.FindGameObjectWithTag("oyunkontrol").GetComponent <oyunKontrol>();

        //sesleri olsuturuyoruz
        //ses = GetComponent<AudioSource>();

        sesler = GetComponents <AudioSource>();

        // en yuksek puani oyun  asinda cekiyoruz

        PlayerPrefs.GetInt("kayit");

        //reklam olaylari
        reklamSayac = PlayerPrefs.GetInt("reklams");
        reklamSayac++;
        PlayerPrefs.SetInt("reklams", reklamSayac);
    }
Esempio n. 6
0
 private void Awake()
 {
     instantiate = this;
 }
Esempio n. 7
0
 // Start is called before the first frame update
 private void Start()
 {
     oyunKontrolScript = GameObject.Find("_Scripts").GetComponent <oyunKontrol>();
 }
Esempio n. 8
0
    oyunKontrol kontrol;    //script olan kontrol

    void Start()
    {
        OyunKontrol = GameObject.FindGameObjectWithTag("OyunKontrol");
        kontrol     = OyunKontrol.GetComponent <oyunKontrol>();
    }
Esempio n. 9
0
 void Start()
 {
     gullekonum        = new Vector2(transform.position.x + 0.731f, transform.position.y + 0.459f);
     oyunKontrolScript = GameObject.Find("_OyunKontrol").GetComponent <oyunKontrol>();
     anim = GetComponent <Animator>();
 }
Esempio n. 10
0
    // OnStateEnter is called when a transition starts and the state machine starts to evaluate this state
    //override public void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
    //{
    //
    //}

    // OnStateUpdate is called on each Update frame between OnStateEnter and OnStateExit callbacks
    override public void OnStateUpdate(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
    {
        oKontrol = GameObject.Find("_Scripts").GetComponent <oyunKontrol>();
    }