private void Start() { dw = FindObjectOfType <DialogueWindow>(); exclamation = GetComponentInChildren <Exclamation>(); soulCounter = FindObjectOfType <SoulCounter>(); Debug.Log("Exclamation: " + exclamation); }
// Start is called before the first frame update void Start() { target = GameObject.FindGameObjectWithTag("SoulTarget1"); aimC = GetComponent <AimConstraint>(); conS.sourceTransform = target.transform; conS.weight = 1; aimC.SetSource(0, conS); soulC = GameObject.FindGameObjectWithTag("SoulTarget1").GetComponent <SoulCounter>(); soulParSys = GetComponentInChildren <ParticleSystem>(); }
// Start is called before the first frame update void Start() { target = GameObject.FindGameObjectWithTag("SoulTarget"); //define o alvo aimC = GetComponent <AimConstraint>(); conS.sourceTransform = target.transform; //define o alvo como fonte do constraint conS.weight = 1; //peso do constraint aimC.SetSource(0, conS); //adiciona o constraint soulC = GameObject.FindGameObjectWithTag("SoulTarget").GetComponent <SoulCounter>(); soulParSys = GetComponentInChildren <ParticleSystem>(); }
// Use this for initialization void Start() { panel = GetComponent <Image>(); panelText = GetComponentInChildren <Text>(); continueButton = transform.GetChild(1).gameObject; cavemanThrow = FindObjectOfType <Caveman_Throw>(); words = messages[wordTracker].MessageText; continueButton.SetActive(false); shaman = FindObjectOfType <Shaman>(); spawnEnemies = FindObjectOfType <SpawnEnemies>(); cavemanMovement = FindObjectOfType <EnabledCaveman>(); soulCounter = FindObjectOfType <SoulCounter>(); runes = FindObjectOfType <ActivateRunes>(); }
private void Start() { soulCounter = FindObjectOfType <SoulCounter>(); }