Ejemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     _player        = GameObject.Find("Player").GetComponent <Transform>();
     _townCanvas    = gameObject.GetComponent <TownCanvas>();
     _caravanParent = GameObject.Find("Caravan").GetComponent <Transform>();
     DetectAllTowns();
 }
Ejemplo n.º 2
0
 void Start()
 {
     _cam        = GameObject.Find("CameraParent").GetComponent <Transform>();
     _townCanvas = GameObject.Find("TownCanvas").GetComponent <TownCanvas>();
     _player     = GameObject.Find("Player").GetComponent <Transform>();
     _playerNav  = GameObject.Find("Player").GetComponent <NavMeshAgent>();
     _dayTimer   = GameObject.Find("Timer").GetComponent <DayTimer>();
 }
Ejemplo n.º 3
0
 void Spawn()
 {
     _endGame        = GameObject.Find("HarbourCanvas").GetComponent <EndGame>();
     _townCanvas     = GameObject.Find("TownCanvas").GetComponent <TownCanvas>();
     _agent          = gameObject.GetComponent <NavMeshAgent>();
     _activateScript = gameObject.GetComponent <ActivateFactory>();
     _agent.enabled  = true;
     _agent.Stop();
     _inMenu = false;
 }
Ejemplo n.º 4
0
 // Use this for initialization
 void Start()
 {
     _rumourText       = GameObject.Find("RumourText").GetComponent <Text>();
     _rumourButton     = GameObject.Find("Get Rumour").GetComponent <Button>();
     _restButton       = GameObject.Find("Rest").GetComponent <Button>();
     _rumourButtonText = GameObject.Find("RumourButtonText").GetComponent <Text>();
     _rumourTypeTxt    = GameObject.Find("RumourType").GetComponent <Text>();
     _rumourTownTxt    = GameObject.Find("RumourTown").GetComponent <Text>();
     _rumourModTxt     = GameObject.Find("RumourMod").GetComponent <Text>();
     _rumourTimeTxt    = GameObject.Find("TimeRemaining").GetComponent <Text>();
     _rumourGO         = GameObject.Find("RumourGO");
     _dayTimer         = GameObject.Find("Timer").GetComponent <DayTimer>();
     _townCanvas       = gameObject.GetComponent <TownCanvas>();
     _rumourGO.SetActive(false);
     GetTowns();
     _saveGame = GameObject.Find("Loader").GetComponent <SaveGame>();
     if (_rumourActive)
     {
         LoadRumour();
     }
 }