void Start() { rmData = GetComponent <RadarManager>(); rocketHUD = GameObject.Find("fake weapon hud").GetComponent <Image>();; rocketHUD.gameObject.SetActive(true); SpeedReadout = GameObject.Find("Speed"); throttleReadout = GameObject.Find("Throttle"); if (optionalDangerHeightReadout) { dangerBaseText = optionalDangerHeightReadout.text; } mFlash = GetComponent <MuzzleFlash>(); mFlash.Reset(); StartCoroutine(rocketSalvoRelease()); shootableScript = GetComponent <Shootable>(); wasHealth = startHealth = shootableScript.healthLimit; UI_ThrottleReadout = throttleReadout.GetComponent <UI_Speed> (); UI_SpeedReadout = SpeedReadout.GetComponent <UI_Speed> (); hardpointRef = missionTarget.GetComponentInChildren <HardPointCounter>(); hardpointMax = hardpointRef.hardpointCount; }
void Start() { rmData = GetComponent<RadarManager>(); rocketHUD = GameObject.Find ("fake weapon hud").GetComponent<Image>();; rocketHUD.gameObject.SetActive(true); SpeedReadout = GameObject.Find("Speed"); throttleReadout = GameObject.Find("Throttle"); if(optionalDangerHeightReadout) { dangerBaseText = optionalDangerHeightReadout.text; } mFlash = GetComponent<MuzzleFlash>(); mFlash.Reset(); StartCoroutine(rocketSalvoRelease()); shootableScript = GetComponent<Shootable>(); wasHealth = startHealth = shootableScript.healthLimit; UI_ThrottleReadout = throttleReadout.GetComponent<UI_Speed> (); UI_SpeedReadout = SpeedReadout.GetComponent<UI_Speed> (); hardpointRef = missionTarget.GetComponentInChildren<HardPointCounter>(); hardpointMax = hardpointRef.hardpointCount; }
void Start() { mFlash = GetComponent<MuzzleFlash>(); mFlash.Reset(); StartCoroutine(rocketSalvoRelease()); shootableScript = GetComponent<Shootable>(); wasHealth = startHealth = shootableScript.healthLimit; hardpointRef = missionTarget.GetComponentInChildren<HardPointCounter>(); hardpointMax = hardpointRef.hardpointCount; }