void Awake() { Player = GameObject.FindWithTag("Player"); weaponController = Player.GetComponentInChildren <WeaponController>(); bulletFX = Resources.Load("FX/BulletCollisionFX") as GameObject; enemyFX = Resources.Load("FX/EnemyDeathFX") as GameObject; playerFX = GameObject.Find("PlayerDeathFX"); playerSong = playerFX.GetComponent <AudioSource>(); powerFX = GameObject.Find("PowerFX").GetComponent <ParticleSystem>(); author = _author; author.SetActive(false); ObjectsPool.CreatePools(5); }