Пример #1
0
 public override void StateUpdate()
 {
     Meteorite.FallDown();
     if (Meteorite.TransformRoot.position.y <= -100f)
     {
         Meteorite.gameObject.SetActive(false);
     }
 }
Пример #2
0
 public override void StateUpdate()
 {
     Meteorite.FallDown();
     if (Meteorite.CheckGround())
     {
         Meteorite.SetState(eMeteoriteState.StuckGround);
         Meteorite.SpawnHole();
         GameEventManager.Instance.OnMeteoriteFall();
     }
 }