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(); }
void Start() { flight = GetComponent <SSFlight>(); team = GetComponent <SSTeam>(); laser = GetComponent <SSLaser>(); }
void Awake() { flight = GetComponent <SSFlight>(); laser = GetComponent <SSLaser>(); }