void Awake() { levelText = GameObject.Find("LevelText"); levelTextPanel = GameObject.Find("ChicoWithTextBoard"); ball = GameObject.Find("Ball"); if (ball) { ballScript = ball.GetComponent <BallScript>(); shootScript = ball.GetComponent <ShootLogicV3>(); } }
void Awake() { levelText = GameObject.Find("LevelText"); levelTextPanel = GameObject.Find("ChicoWithTextBoard"); ball = GameObject.Find("Ball"); if (ball) { ballScript = ball.GetComponent<BallScript>(); shootScript = ball.GetComponent<ShootLogicV3>(); } }
void Awake() { rnd = new System.Random(); GetComponent <TrailRenderer>().enabled = false; isBoosted = false; level = GameObject.Find("Level").GetComponent <LevelScript>(); shootLogic = GetComponent <ShootLogicV3>(); if (GameObject.Find("GameManager")) { manager = GameObject.Find("GameManager").GetComponent <GameManagerScript>(); camShake = GameObject.Find("GameManager").GetComponent <CameraShakeScript>(); cam = Camera.main; } amountOfHits = 0; anim = GetComponent <Animator>(); }
void Awake() { rnd = new System.Random(); GetComponent<TrailRenderer>().enabled = false; isBoosted = false; level = GameObject.Find("Level").GetComponent<LevelScript>(); shootLogic = GetComponent<ShootLogicV3>(); if (GameObject.Find("GameManager")) { manager = GameObject.Find("GameManager").GetComponent<GameManagerScript>(); camShake = GameObject.Find("GameManager").GetComponent<CameraShakeScript>(); cam = Camera.main; } amountOfHits = 0; anim = GetComponent<Animator>(); }
// Use this for initialization void Start() { shoot = GetComponent<ShootLogicV3>(); StartCoroutine(launchBall()); }
// Use this for initialization void Start() { shoot = GetComponent <ShootLogicV3>(); StartCoroutine(launchBall()); }
// Use this for initialization void Start() { shoot = transform.parent.GetComponent<ShootLogicV3>(); }
// Use this for initialization void Start() { shoot = transform.parent.GetComponent <ShootLogicV3>(); }