Example #1
0
 // LifeCycle Methods
 void Start()
 {
     status         = StatusMap.playing;
     score          = new GameSystem.Score(new GameSystem.Points.Distance(new Vector3(0, 0, 0), playerObject.transform));
     player         = new Player.Base(playerObject.transform, playerObject.GetComponent <Rigidbody>());
     failController = new Failing.Controller(player, -100f);
     GameSystem.Score.GetHighest5();
 }
Example #2
0
 void Retry()
 {
     Destroy(gameOverCanvas.obj);
     GameSystem.Scene.BuildWithLoadScene(GameSystem.Scene.ScenesMap.Main);
     player         = new Player.Base(playerObject.transform, playerObject.GetComponent <Rigidbody>());
     score          = new GameSystem.Score(new GameSystem.Points.Distance(new Vector3(0, 0, 0), playerObject.transform));
     failController = new Failing.Controller(player, -100f);
     status         = StatusMap.playing;
 }