private void Start() { _self.OnTriggerHit += OnPlayerHit; _self.BackToBeginPosition += OnBackToBeginPosition; _self.OnDead += OnDead; _enemy.OnTriggerHit += OnPlayerHit; _enemy.BackToBeginPosition += OnBackToBeginPosition; _enemy.OnDead += OnDead; _self.Init(_baseHp, _baseSelfDamage, BasePlayer.ACTION_STATE.ATTACK, _enemy); _enemy.Init(_baseHp, _baseeEnemyDamage, BasePlayer.ACTION_STATE.DEFENCE, _self); _attacker = _self; _defender = _enemy; _isGameEnded = false; _result.Hide(); }
public void HideResultPopup() { m_resultPopup?.Hide(); }
public void Init() { _pausePopup.Hide(); _resultPopup.Hide(); ShowAIButtonState(); }