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>(); }
void Awake() { shotCountText = GameObject.Find("ShotCountText").GetComponent <ShotCountText>(); ballsCountText = GameObject.Find("BallCountText").GetComponent <Text>(); ballsContainer = GameObject.Find("BallsContainer"); }
private void Awake() { _camera = Camera.main.GetComponent <CameraTransitions>(); _shotCountText = GameObject.Find("Canvas ShotCount").GetComponent <ShotCountText>(); ballsContainer = GameObject.Find("BallsContainer"); }