Пример #1
0
    public void Update()
    {
        winCollider           = this.GetComponent <Collider>();
        winCollider.isTrigger = true;
        rocketShip            = GameObject.FindGameObjectWithTag("Player");

        _canvas = GameObject.FindGameObjectWithTag("CanvasUI");
        menuUI  = _canvas.GetComponent <MenuAndUIScript>();
    }
Пример #2
0
 public void Update()
 {
     _canvas = GameObject.FindGameObjectWithTag("CanvasUI");
     menuUI  = _canvas.GetComponent <MenuAndUIScript>();
 }