Ejemplo n.º 1
0
        // Start is called before the first frame update
        void Start()
        {
            shipObject    = GameObject.Find("ShipManager").GetComponent <ShipManager>().MainShipObject;
            courseManager = GameObject.Find("CourseManager").GetComponent <CourseManager>();
            nextMakerNavi = GameObject.Find("NextLine").GetComponent <NextMakerNavi>();
            Player        = GameObject.Find("Ship");
            MainCamera    = GameObject.Find("GameViewCamera");

            RotationSpeed = 0;
            AngleValue    = 0;
        }
Ejemplo n.º 2
0
        void Start()
        {
            if (!photonView)
            {
                photonView = PhotonView.Get(transform.root);
            }
            shipObject    = GameObject.Find("ShipManager").GetComponent <ShipManager>().MainShipObject;
            courseManager = GameObject.Find("CourseManager").GetComponent <CourseManager>();
            lineRenderer  = GetComponent <LineRenderer>();

            //線の幅を決める
            lineRenderer.startWidth = 0.1f;
            lineRenderer.endWidth   = 0.1f;
            //頂点の数を決める
            lineRenderer.positionCount = 2;
        }
 private void Start()
 {
     courseManager = GameObject.Find("CourseManager").GetComponent <CourseManager>();
 }