public void Update() { winCollider = this.GetComponent <Collider>(); winCollider.isTrigger = true; rocketShip = GameObject.FindGameObjectWithTag("Player"); _canvas = GameObject.FindGameObjectWithTag("CanvasUI"); menuUI = _canvas.GetComponent <MenuAndUIScript>(); }
public void Update() { _canvas = GameObject.FindGameObjectWithTag("CanvasUI"); menuUI = _canvas.GetComponent <MenuAndUIScript>(); }