public void RpcOnRevived() { player.Collider2D.isTrigger = false; player.gameObject.layer = LayerDict.Instance.GetPlayerLayer(); FMODUtil.PlayOnTransform(reviveSound, transform); OnRevived?.Invoke(); }
public void RpcOnRevivingOtherPlayerFinished() { Reviving = false; OnRevivingOtherPlayerFinished?.Invoke(); }
public void RpcOnRevivingOtherPlayerStarted() { Reviving = true; OnRevivingOtherPlayerStarted?.Invoke(); }
public void Revive() { IsDead = false; gameObject.SetActive(!IsDead); ReviveEvent?.Invoke(); }