Ejemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        m_fSpeed = (float)Random.Range (10, 30) * 0.1f;
        m_fFrequency = (float)Random.Range (10, 30) * 0.1f;
        m_fHeight = 3f;

        m_renderer = GetComponent<LineRenderer>();

        m_pcurve = GameObject.FindGameObjectWithTag ("pcurve").GetComponent<PlayerCurve> ();
    }
Ejemplo n.º 2
0
 void Start()
 {
     pcurvescript = GameObject.FindGameObjectWithTag ("pcurve").GetComponent<PlayerCurve> ();
 }