Beispiel #1
0
    void Awake()
    {
        lockonTr = lockon.transform;
        myTr     = myTeam.transform;

        lockonInitColor = lockon.color;
        lockonInitScale = lockonTr.localScale;
        lockonInitRot   = lockonTr.localRotation;

        myLaser = myTr.GetComponent <SSLaser>();

        // initialize reticles pool
        pool = new GameObject[maxReticles];
        for (int i = 0; i < maxReticles; i++)
        {
            pool[i] = Instantiate(reticlePrefab, reticlePrefab.transform.parent);
        }

        // get spaceships enumerator
        GetTargetsEnumerator();
    }
Beispiel #2
0
 void Start()
 {
     flight = GetComponent <SSFlight>();
     team   = GetComponent <SSTeam>();
     laser  = GetComponent <SSLaser>();
 }
Beispiel #3
0
 void Awake()
 {
     flight = GetComponent <SSFlight>();
     laser  = GetComponent <SSLaser>();
 }