コード例 #1
0
    void Start()
    {
        stoneHengesVertices = GameObject.FindGameObjectWithTag("stone").GetComponent <StoneHengeVertices>();

        initV = new Vector3(Mathf.Cos(Mathf.Deg2Rad) / Random.Range(2f, 3f),
                            Mathf.Sin(Mathf.Deg2Rad) * Random.Range(20f, 30f), 0);

        ghostLines = new List <LineRenderer>();
        verticesGO = new List <GameObject>();
        vertices   = new List <GhostNode>();

        ghostTransform = transform;
        ghostBody      = ghostTransform.Find("Body");
        ghostHead      = ghostTransform.Find("Head");

        BuildGhost();
        LineDraw(true);
    }
コード例 #2
0
 void Start()
 {
     connonBall          = GetComponent <CannonBall>();
     stoneHengesVertices = GameObject.FindGameObjectWithTag("stone").GetComponent <StoneHengeVertices>();
     stoneHengesVertices.AllVerrtices();
 }