void Start() { instantiator = GetComponent <Instantiator> (); uiManager = GameObject.FindGameObjectWithTag(Constants.Tags.UIHolder).GetComponent <UIManager> (); gameStateManager = new GameStateManager(this, uiManager, instantiator); AttemptToStartReplay(); }
public GameStateManager(GameManager gameManager, UIManager uiManager, Instantiator instantiator) { this.gameManager = gameManager; this.instantiator = instantiator; this.uiManager = uiManager; SetReplayPathFromPrefs(); SetMaxRounds(); }
void Start() { roundStepTime = CommandLineUtil.GetRoundStep(); Instantiator instantiator = GetComponent <Instantiator> (); UIManager uiManager = GameObject.FindGameObjectWithTag(Constants.Tags.UIHolder).GetComponent <UIManager> (); ReplayManager replayManager = GetComponent <ReplayManager> (); gameStateManager = new GameStateManager(startRound, this, uiManager, instantiator, replayManager); AttemptToStartReplay(); }
public GameStateManager(int startRound, GameManager gameManager, UIManager uiManager, Instantiator instantiator, ReplayManager replayManager) { this.startRound = startRound; this.gameManager = gameManager; this.instantiator = instantiator; this.uiManager = uiManager; this.replayManager = replayManager; currentRound = startRound; rate = CommandLineUtil.GetRoundStep(); previousMissiles = new List <string>(); Initialise(); }