Example #1
0
 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");
 }
Example #2
0
 void Start()
 {
     audioSource = GetComponent <AudioSource>();
     //playerMovement = GetComponent<PlayerMovement>();
     rigidBody     = GetComponent <Rigidbody2D>();
     soulCollector = GetComponent <SoulCollector>();
     invulnerable  = false;
     //playerMovement.invulnerable = false;
     timer = 0;
 }
Example #3
0
 // Use this for initialization
 void Start()
 {
     audioSource   = GetComponent <AudioSource>();
     soulCollector = GameObject.FindGameObjectWithTag("Player").GetComponent <SoulCollector>();
     bullet        = Resources.Load("Prefabs/NormalBullet");
 }