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