Пример #1
0
 public override void StateUpdate()
 {
     Meteorite.FallDown();
     if (Meteorite.CheckGround())
     {
         Meteorite.SetState(eMeteoriteState.StuckGround);
         Meteorite.SpawnHole();
         GameEventManager.Instance.OnMeteoriteFall();
     }
 }
Пример #2
0
 public override void OnPointerClick(PointerEventData pointerEventData)
 {
     Meteorite.SetState(eMeteoriteState.FallDownGround);
 }