Exemple #1
0
 public override void Execute()
 {
     ChangeLifesCountSignal.Dispatch(-1);
     Time.timeScale = 1f;
     ChangeRespawnInvulnerabitiySignal.Dispatch();
     LoosePopupCloseSignal.Dispatch();
 }
Exemple #2
0
        public override void Execute()
        {
            PlayerModel.CurrentLineIndex  = startLineIndex;
            PlayerModel.TargetWayPoint    = GameWorldModel.Instance.AllWaypoints[startLineIndex].First.Next.Value;
            PlayerModel.CurrentLifesCount = GameWorldModel.Instance.StartLifesCount;

            PlayerView.Transform.position = GameWorldModel.Instance.AllWaypoints[startLineIndex].First.Value.position;
            PlayerView.Animator.SetFloat("Speed", 1f);

            ChangeRespawnInvulnerabitiySignal.Dispatch();

            GameManager.StartGameTimer();
        }