Пример #1
0
    private IEnumerator WaitForeRevive(DeadData deadData)
    {
        yield return(new WaitForSeconds(ReviveWaitTime));

        ReviveAnimator.SetTrigger("Revive");
        Object.Destroy(deadData);
        var abilities      = gameObject.GetComponents <Ability>();
        var childAbilities = gameObject.GetComponentsInChildren <Ability>();
        var behaviours     = gameObject.GetComponentsInParent <Behaviour>();

        Data.CurrentHealth = Data.BaseHealth;
        foreach (var ability in abilities)
        {
            ability.enabled = true;
        }
        foreach (var ability in childAbilities)
        {
            ability.enabled = true;
        }
        foreach (var behaviour in behaviours)
        {
            throw new NotImplementedException("Behaciour revive is not done yet");
        }
        AgentToPlace.isStopped          = true;
        AgentToPlace.transform.position = ReviveSpot.position;
        AgentToPlace.nextPosition       = ReviveSpot.position;
        AgentToPlace.SetDestination(ReviveSpot.position);
        _gameStartSignal.Fire();
    }
Пример #2
0
        void Start()
        {
            if (InitiateStartScene)
            {
                _gameStartSignal.Fire();
            }

            _trackingService.AppStart();
        }
Пример #3
0
    private void OnEnable()
    {
        switch (Type)
        {
        case SignalType.GameOver:
            _gameOverSignal.Fire();
            break;

        case SignalType.GameStart:
            _gameStartSignal.Fire();
            break;
        }
    }
Пример #4
0
 public void Start()
 {
     gridModelWrapper.SetWrappee(gridModelFactory.Create());
     gridController.Refresh();
     gameStartSignal.Fire();
 }
Пример #5
0
 public void StartGame()
 {
     _gameStartSignal.Fire();
 }
Пример #6
0
 public void StartGame()
 {
     _playMusicClipSignal.Fire(_backButtonSound);
     _gameStartSignal.Fire();
 }