예제 #1
0
    void Start()
    {
        hud   = (OpponentsHud)GameObject.Find("OpponentsHud").GetComponent <OpponentsHud>();
        trail = this.GetComponent <SmoothTrail>();

        gradient      = new Gradient();
        gradientAlpha = new GradientAlphaKey[5];
        gradientColor = new GradientColorKey[5];
    }
예제 #2
0
    void Start()
    {
        _instance = this;
        foreach (Transform t in OpponentsParent)
        {
            Opponents.Add(new OpponentRepresentation(t.GetComponent <Opponent>(),
                                                     (GameObject)Instantiate(HUD, new Vector3(1000, 0, 0), Quaternion.identity)));
        }

        //Dataspin.Instance.GetRandomGooglePlusIds(10);

        StartCoroutine("ComputeOpponentsDistance");
    }