void Awake() { if (instance != null) { Debug.LogError("Doubled HitChanceInfo, there can be only one!"); return; } instance = this; theText = GetComponentInChildren <Text>(); theText.text = ""; TurnOff(); }
void Start() { hitChanceInfo = FindObjectOfType <UIHitChanceInformation>(); }
protected override void OnStart() { hitInfo = FindObjectOfType <UIHitChanceInformation>(); myShootingScript = GetComponent <ShootingScript>(); }