Exemplo n.º 1
0
 private void Start()
 {
     dw          = FindObjectOfType <DialogueWindow>();
     exclamation = GetComponentInChildren <Exclamation>();
     soulCounter = FindObjectOfType <SoulCounter>();
     Debug.Log("Exclamation: " + exclamation);
 }
Exemplo n.º 2
0
 // 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>();
 }
Exemplo n.º 3
0
 // 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>();
 }
Exemplo n.º 4
0
 // 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>();
 }
Exemplo n.º 5
0
 private void Start()
 {
     soulCounter = FindObjectOfType <SoulCounter>();
 }