Example #1
0
 void Awake()
 {
     beamPool = GameObject.Find(Constants.BeamPool).GetComponent <BeamPool>();
     if (target == null)
     {
         target = GameObject.Find(Constants.Player);
     }
 }
Example #2
0
 void Awake()
 {
     beamPool = GameObject.Find(Constants.BeamPool).GetComponent <BeamPool>();
 }
Example #3
0
 void Awake()
 {
     ship             = GetComponent <Ship>();
     beamPool         = GameObject.Find(Constants.BeamPool).GetComponent <BeamPool>();
     audioSource.clip = laserSound;
 }