Пример #1
0
    void Awake()
    {
        Time.timeScale = 1;
        //Application.targetFrameRate = 60;

        cannon         = GameObject.FindGameObjectWithTag("Cannon");
        shotCountText  = GameObject.Find("ShotCountText").GetComponent <ShotCountText>();
        ballsCountText = GameObject.Find("BallCountText").GetComponent <Text>();
        ballsContainer = GameObject.Find("BallsContainer");
        mainMenu       = GameObject.Find("MainCanvas").GetComponent <MainMenu>();
    }
Пример #2
0
 void Awake()
 {
     shotCountText  = GameObject.Find("ShotCountText").GetComponent <ShotCountText>();
     ballsCountText = GameObject.Find("BallCountText").GetComponent <Text>();
     ballsContainer = GameObject.Find("BallsContainer");
 }
Пример #3
0
 private void Awake()
 {
     _camera        = Camera.main.GetComponent <CameraTransitions>();
     _shotCountText = GameObject.Find("Canvas ShotCount").GetComponent <ShotCountText>();
     ballsContainer = GameObject.Find("BallsContainer");
 }