Пример #1
0
    void Start()
    {
        ui          = FindObjectOfType <UiManager>();
        ballVis     = FindObjectOfType <BallVisuals>();
        screenshake = FindObjectOfType <Screenshake>();
        player      = GameObject.FindGameObjectWithTag("Player");

        resetLevel();
    }
Пример #2
0
 private void Awake()
 {
     visuals = GetComponent <BallVisuals>();
 }
Пример #3
0
 void Start()
 {
     StartCoroutine(startPortalAnim());
     ballVisuals = FindObjectOfType <BallVisuals>();
 }