// Use this for initialization
 void Start()
 {
     scoreKeeper = GameObject.FindObjectOfType<ScoreKeeperS>() as ScoreKeeperS;
     ghostBall = GameObject.FindObjectOfType<GhostballS>() as GhostballS;
 }
Example #2
0
    void Start()
    {
        scoreKeeper = GameObject.FindObjectOfType<ScoreKeeperS>() as ScoreKeeperS;

        if (CurrentModeS.numRoundsDefault < 3){
            crown3.gameObject.SetActive(false);
        }
        if (CurrentModeS.numRoundsDefault < 2){
            crown2.gameObject.SetActive(false);
        }
    }
Example #3
0
 // Use this for initialization
 void Start()
 {
     scoreKeeper = GameObject.FindObjectOfType<ScoreKeeperS>() as ScoreKeeperS;
     ghostBall = GameObject.FindGameObjectWithTag("Ghostball") as GameObject;
 }
    // Use this for initialization
    void Start()
    {
        originalScale = dotPrefab.transform.localScale;

        playerRigid = playerRef.GetComponent<Rigidbody>();

        currentScoreKeeper = GameObject.Find("Main Camera").GetComponent<ScoreKeeperS>();

        //bodyConnector.material = playerRef.GetComponent<Renderer>().material;
        if (playerRef.characterNum != 0)
            SetDotMaterial ();

        lastLocation = playerRef.transform.position;
        currentLocation = playerRef.transform.position;

        // spawn tail lengths based on initial health
        InitialDotSpawn ();

        trailRendererMain = trailRendererGO.GetComponent<TrailRenderer>();
        trailRendererGlow = trailRendererGO2.GetComponent<TrailRenderer>();
    }