Exemplo n.º 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];
    }
Exemplo n.º 2
0
 protected override void Awake()
 {
     base.Awake();
     this._smoothTrail = base.TrailRendererTransform.GetComponent <SmoothTrail>();
 }