예제 #1
0
 // Start is called before the first frame update
 void Start()
 {
     gerisayim            = gameObject.AddComponent <GeriSayim>();
     gerisayim.ToplamSure = 3;
     gerisayim.Calistir();
     baslangicZamani = Time.time;
 }
예제 #2
0
    // Update is called once per frame
    void Update()
    {
        if (gerisayim.Bitti)
        {
            float gecensure = Time.time - baslangicZamani;
            Debug.Log(gecensure);
            Debug.Log(Time.time - baslangicZamani);

            gerisayim.Calistir();
            baslangicZamani = Time.time;
        }
    }