private void Start() { TQ = FindObjectOfType <Test_Questions>(); TA = FindObjectOfType <Test_Answers>(); PL = FindObjectOfType <Player_Life>(); cs = FindObjectOfType <cannon_shoot>(); RI = FindObjectOfType <RandomIndex>(); }
// Start is called before the first frame update void Start() { cs = FindObjectOfType <cannon_shoot>(); sr = gameObject.GetComponent <SpriteRenderer>(); }