public ProgramController(string player, int index) { _program = PlayersManager.GetPlayerByName(player).Programs[index]; ProgramCounter = 0; }
private void ReloadScene() { PlayersManager.ClearAllMemories(); SceneManager.LoadScene(SceneManager.GetActiveScene().name); }
private void RegisterReference() { PlayersManager.GetPlayerByName(this.Player).RegisterTank(this); }
private void Start() { this.HP = 1000; PlayersManager.GetPlayerByName(this.Player).RegisterFactory(this); }
private void OnDestroy() { PlayersManager.GetPlayerByName(this.Player).UnregisterTank(this); }