示例#1
0
    private void sc()
    {
        Wayline[]  ky    = Kylines();
        Wayline    line  = ky[Random.Range(0, ky.Length)];
        GameObject go    = Instantiate(Gob[Random.Range(0, Gob.Length)], line.Waypoints[0], Quaternion.identity) as GameObject;
        xunlu      xunlu = go.GetComponent <xunlu>();

        xunlu.line = line;
    }
示例#2
0
    private void sc()
    {
        Wayline[]  kyluxian = KYline();
        Wayline    line     = kyluxian[Random.Range(0, kyluxian.Length)];
        GameObject go       = Instantiate(gameob, line.waypoints[0], Quaternion.identity) as GameObject;
        xunlu      xunlu    = go.GetComponent <xunlu>();

        xunlu.line      = line;
        xunlu.line.isus = false;
    }
示例#3
0
    private void sc()
    {
        Wayline[]  kylj  = kylines();
        Wayline    line  = kylj[Random.Range(0, kylj.Length)];
        GameObject go    = Instantiate(cub, line.waypoints[0], Quaternion.identity) as GameObject;
        xunlu      xunlu = go.GetComponent <xunlu>();

        xunlu.line      = line;
        xunlu.line.isok = false;
    }