public void Update(BattleSceneControllerScript gameController, float delta) { foreach (var te in TempEffectList) { te.Update(delta); } }
private void getGameControllerScript() { if (this.gameControllerScript == null) { //var gameControllerObject = GameObject.FindGameObjectWithTag("GameController"); //this.gameControllerScript = gameControllerObject.GetComponentInChildren<BattleSceneControllerScript>(); this.gameControllerScript = GameObject.FindObjectOfType <BattleSceneControllerScript>().GetComponent <BattleSceneControllerScript>(); } }
private void getGameControllerScript() { if(this.gameControllerScript == null) { //var gameControllerObject = GameObject.FindGameObjectWithTag("GameController"); //this.gameControllerScript = gameControllerObject.GetComponentInChildren<BattleSceneControllerScript>(); this.gameControllerScript = GameObject.FindObjectOfType<BattleSceneControllerScript>().GetComponent<BattleSceneControllerScript>(); } }
public BattleGame(BattleGameData gameData, Random r, BattleSceneControllerScript gameScript) { this.gameControllerScript = gameScript; this.gameData = gameData; this.r = r; battleLog = new BattleLog(); LoadBoardFromData(); LoadCharactersFromData(); StartBattle(); }
// Use this for initialization void Start () { this.gameControllerScript = GameObject.FindObjectOfType<BattleSceneControllerScript>(); LoadBattleLog(); }
// Use this for initialization void Start() { this.gameControllerScript = GameObject.FindObjectOfType <BattleSceneControllerScript>(); LoadBattleLog(); }
public void Update(BattleSceneControllerScript gameController, float delta) { foreach(var te in TempEffectList) { te.Update(delta); } }