Example #1
0
 void clearMemoryOfRoomsAndMachineLearning()
 {
     patrolClearer.clearAllPatrols();
     MapGenerator.clearRoomMemory();
     PlayerPath.clearPathData();
     TimeSpentInEachRoom.clearData();
 }
Example #2
0
 void Start()
 {
     timeSpentScript  = this.GetComponent <TimeSpentInEachRoom> ();
     playerWasKilled  = false;
     deathListener    = GameObject.Find("DeathController").GetComponent <DeathListener> ();
     healthBar        = new Rect(Screen.width / 10, Screen.height * 8.75f / 10, Screen.width / 3, Screen.height / 50);
     healthBarTexture = new Texture2D(1, 1);
     healthBarTexture.SetPixel(0, 0, Color.red);
     healthBarTexture.Apply();
 }
Example #3
0
 void Start()
 {
     playerPathScript = GameObject.Find("Player").GetComponent <PlayerPath> ();
     timeScript       = GameObject.Find("Player").GetComponent <TimeSpentInEachRoom> ();
     patrolClearer    = new PatrolClearer();
 }
 void Start()
 {
     playerPathScript = player.GetComponent <PlayerPath> ();
     timeScript       = player.GetComponent <TimeSpentInEachRoom> ();
     patrolClearer    = new PatrolClearer();
 }