void Start() { _stageManager = GameObject.Find("StageManager").GetComponent <stageManager>(); nameTMP = eventNote.transform.Find("Name").GetComponent <TextMeshProUGUI>(); effect = eventNote.transform.Find("Efeito").GetComponent <TextMeshProUGUI>(); InvokeRepeating("testEvent", 3f, 3f); }
void Awake() { if (!instance) { instance = this; } else { Destroy(this); } }
void Start() { manager = GameObject.Find("StageManager").GetComponent <stageManager>(); stageList = manager.GetStages(); for (int c = 0; c < stageList.Count; c++) { GameObject temp = Instantiate(stageModel, content.transform.position, Quaternion.identity); temp.GetComponent <setStageStatusView>().SetMyStage(stageList[c]); temp.transform.SetParent(content.transform); temp.transform.localScale = Vector3.one; } }
// Start is called before the first frame update void Start() { Player = GameObject.FindGameObjectWithTag("Player"); #region SingleTon if (instance == null) { instance = this; } else if (instance != null) { Destroy(this); } #endregion }
[HideInInspector] public bool reinicio; //bandera para reiniciar los sprites //public int longitud; //longitud de los array private void Awake() { if (instance == null) //sino hay un obj stageManager lo creo y si hay lo destruye para que solo se encuentre una instancia en la scene { instance = this; DontDestroyOnLoad(gameObject); } else { Destroy(gameObject); } //inicializacion de arrays value10 = new int[23]; value30 = new int[17]; value60 = new int[16]; value100 = new int[16]; }
void Start() { managerR = GameObject.Find("ResourcesManager").GetComponent <resourcesManager>(); _stageManager = GameObject.Find("StageManager").GetComponent <stageManager>(); foreach (var aux in waterMinigame) { minigameTypes.Add(aux); } foreach (var aux in cleaningMinigame) { minigameTypes.Add(aux); } foreach (var aux in nutrientsMinigame) { minigameTypes.Add(aux); } }
void Start() { myAudio = GameObject.Find("FxAudioButton").GetComponent <AudioSource>(); MenuManager = GameObject.Find("MenuManager").GetComponent <menuManager>(); wayPointList = GameObject.FindGameObjectsWithTag("WayPoint"); _resourcesManager = GameObject.Find("ResourcesManager").GetComponent <resourcesManager>(); _stageManager = GameObject.Find("StageManager").GetComponent <stageManager>(); if (PlayerPrefs.HasKey("TutorialEnd") && PlayerPrefs.GetInt("showOutNotice") == 1) { Invoke("showOutNotice", 2f); StartCoroutine("setWayPoint"); pointDestiny = wayPointList[0]; PlayerPrefs.SetInt("showOutNotice", 0); } else { PlayerPrefs.SetString("TutorialEnd", "..."); } }
void Awake() { checkBools = GameObject.Find("miniStage2").GetComponent <stage3_2_Manager>(); speed = 0; dogAni = GetComponent <Animator>(); stageM = GameObject.Find("MainCamera").GetComponent <stageManager>(); if (sleepingGun[0] != null) { sleepingGun[0].SetActive(true); sleepingGun[1].SetActive(false); sleepingGun[2].SetActive(false); } shootDog = false; audioManager = GameObject.Find("soundManager"); audioChange = audioManager.GetComponent <AudioSource>(); barkBark = audioManager.GetComponent <audioControl>().dogBark; colorGet = audioManager.GetComponent <audioControl>().getColor; byebye = audioManager.GetComponent <audioControl>().forStage3; gun1 = audioManager.GetComponent <audioControl>().gun1; gun2 = audioManager.GetComponent <audioControl>().gun2; }
void Start() { manager = GameObject.Find("StageManager").GetComponent <stageManager>(); }
void Start() { tradeParticle = transform.Find("Trade").GetComponent <Transform>().gameObject; _stageManager = GameObject.Find("StageManager").GetComponent <stageManager>(); }
void Start() { _stageManager = GameObject.Find("StageManager").GetComponent <stageManager>(); InvokeRepeating("testEvent", 3f, 3f); }