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