Ejemplo n.º 1
0
 private void Awake()
 {
     moves    = GetComponent <Caveman_Move>();
     throws   = GetComponent <Caveman_Throw>();
     sprite   = GetComponent <SpriteRenderer>();
     animator = GetComponent <Animator>();
     col      = GetComponent <Collider2D>();
     EnableScripts(false);
 }
Ejemplo n.º 2
0
 // Use this for initialization
 void Awake()
 {
     animator     = GetComponent <Animator>();
     exclamation  = GetComponentInChildren <Exclamation>();
     dialogue     = GetComponent <ShamanDialogue>();
     cavemanThrow = FindObjectOfType <Caveman_Throw>();
     ChangeCursor = false;
     audio        = GetComponent <AudioSource>();
 }
Ejemplo n.º 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>();
 }