Exemplo n.º 1
0
    void Awake()
    {
        levelText      = GameObject.Find("LevelText");
        levelTextPanel = GameObject.Find("ChicoWithTextBoard");

        ball = GameObject.Find("Ball");
        if (ball)
        {
            ballScript  = ball.GetComponent <BallScript>();
            shootScript = ball.GetComponent <ShootLogicV3>();
        }
    }
Exemplo n.º 2
0
    void Awake()
    {
        levelText = GameObject.Find("LevelText");
        levelTextPanel = GameObject.Find("ChicoWithTextBoard");

        ball = GameObject.Find("Ball");
        if (ball)
        {
            ballScript = ball.GetComponent<BallScript>();
            shootScript = ball.GetComponent<ShootLogicV3>();
        }
    }
Exemplo n.º 3
0
    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>();
    }
Exemplo n.º 4
0
    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>();
    }
Exemplo n.º 5
0
 // Use this for initialization
 void Start()
 {
     shoot = GetComponent<ShootLogicV3>();
     StartCoroutine(launchBall());
 }
Exemplo n.º 6
0
 // Use this for initialization
 void Start()
 {
     shoot = GetComponent <ShootLogicV3>();
     StartCoroutine(launchBall());
 }
 // Use this for initialization
 void Start()
 {
     shoot = transform.parent.GetComponent<ShootLogicV3>();
 }
Exemplo n.º 8
0
 // Use this for initialization
 void Start()
 {
     shoot = transform.parent.GetComponent <ShootLogicV3>();
 }