public override bool CanReceiveDamage(CharacterEntity character)
 {
     var networkGameplayManager = BaseNetworkGameManager.Singleton;
     if (networkGameplayManager != null && networkGameplayManager.IsMatchEnded)
         return false;
     var extra = character.GetComponent<BRCharacterEntityExtra>();
     return extra.isSpawned && extra.isGroundOnce;
 }
 public override bool CanAttack(CharacterEntity character)
 {
     var networkGameplayManager = BaseNetworkGameManager.Singleton;
     if (networkGameplayManager != null && networkGameplayManager.IsMatchEnded)
         return false;
     var extra = character.GetComponent<BRCharacterEntityExtra>();
     return currentState == BRState.WaitingForPlayers || (extra.isSpawned && extra.isGroundOnce);
 }
 public void OnAnimationEnd()
 {
     Logic.Model.View.ModelRotateAndAnim modelRotateAndAnim = _newCharacterEntity.GetComponent <Logic.Model.View.ModelRotateAndAnim>();
     if (modelRotateAndAnim != null)
     {
         modelRotateAndAnim.canClick = true;
         modelRotateAndAnim.canDrag  = true;
     }
 }
 public bool CanSpawnCharacter(CharacterEntity character)
 {
     var extra = character.GetComponent<BRCharacterEntityExtra>();
     return isServer && (extra == null || !extra.isSpawned) && IsSpawnerInsideSpawnableArea();
 }