Пример #1
0
 private void PrimitiveScript_OnCollisionBarrier(PrimitiveScript obj)
 {
     if (_Count > 0)
     {
         _Count--;
     }
 }
Пример #2
0
 private void PrimitiveScript_OnCollisionBunus(PrimitiveScript obj)
 {
     _Count++;
     if (_Count >= 10)
     {
         Level2();
     }
 }
Пример #3
0
 private void PrimitiveScript_OnCollisionBarrier(PrimitiveScript obj)
 {
     if (_AnimPlay == null)
     {
         _IsTake = false;
         anim.SetBool("Fall", true);
         _AnimPlay = new object();
     }
 }
Пример #4
0
 private void PrimitiveScript_OnCollisionBunus(PrimitiveScript obj)
 {
     txt.text = "Count:" + GameController.instance._Count.ToString();
 }