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