Beispiel #1
0
		IEnumerator delayToShowNextMonster(BattleTeamBase aTeam){   
			
			//FadeBlackScreen(0.0f,0.1f);
			yield return new WaitForSeconds(0.1f);
			if(aTeam.nextUnsetMonster!=null) {
				this.opponentTeam.healthBars = true;
				this.playersTeam.healthBars = true;
				this.opponentTeam.unfadeAllMonsters();
				this.playersTeam.allMonstersBackInPlace();
				this.opponentTeam.allMonstersBackInPlace();
				this.showMovesForMonster(aTeam.nextUnsetMonster);
				if(aTeam.nextUnsetMonster!=null)
					this.playersTeam.bringMonsterToFront(aTeam.nextUnsetMonster);
			}
		}
Beispiel #2
0
		private void onMonsterFainted(BattleTeamBase aTeam,BattleMonster aMonster) {
			//if(aTeam.isLocalTeam) {
				this._commentaryManager.addCommentaryMessage(aMonster.ownersName+"'s "+aMonster.name+" has Fainted!",ECommentaryMessageType.StandardMessage,ECommentaryMessagePosition.CenterMessage);
			//}
			if(aTeam.teamIsDead) {
				handleBattleOver(aTeam as BattleTeam);
			}
		}