public void Awake() { sLAC = GetComponentInChildren <SoulLinkAudioController>(); soulCollector = GameObject.FindGameObjectWithTag("Player").GetComponent <SoulCollector>(); lights = new List <GameObject>(); lightPrefab = Resources.Load("Prefabs/Light"); linePrefab = Resources.Load("Prefabs/Line"); }
void Start() { audioSource = GetComponent <AudioSource>(); //playerMovement = GetComponent<PlayerMovement>(); rigidBody = GetComponent <Rigidbody2D>(); soulCollector = GetComponent <SoulCollector>(); invulnerable = false; //playerMovement.invulnerable = false; timer = 0; }
// Use this for initialization void Start() { audioSource = GetComponent <AudioSource>(); soulCollector = GameObject.FindGameObjectWithTag("Player").GetComponent <SoulCollector>(); bullet = Resources.Load("Prefabs/NormalBullet"); }