Пример #1
0
 // Use this for initialization
 void Start()
 {
     text          = GetComponent <Text>();
     exclamation   = FindObjectOfType <Exclamation>();
     activateRunes = FindObjectOfType <ActivateRunes>();
     rebirth       = FindObjectOfType <Rebirth>();
 }
Пример #2
0
 private void Start()
 {
     cavemanStartPos = transform.position;
     enabledCaveman  = GetComponent <EnabledCaveman>();
     rebirth         = FindObjectOfType <Rebirth>();
     health          = startHealth;
     runes           = FindObjectOfType <ActivateRunes>();
     sprite          = GetComponent <SpriteRenderer>();
     dw    = FindObjectOfType <DialogueWindow>();
     life  = FindObjectOfType <Life_Counter>();
     audio = GetComponent <AudioSource>();
 }
Пример #3
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>();
 }