void Start()
    {
        gcobj = GameObject.FindGameObjectWithTag("GameController");
        gc    = gcobj.GetComponent <GameController>();
        plnet = GameObject.FindGameObjectWithTag("PLNetwork");
        pl    = plnet.GetComponent <PLNetwork>();

        DirectionLight = GameObject.FindGameObjectWithTag("DNC");
        dnc            = DirectionLight.GetComponent <DayNightCycle>();
        //PhotonView = GetComponent<PhotonView>();
        num = pl.playerNumber;
        StartCoroutine(SetPositions());


        Initialize();
    }
Beispiel #2
0
 // Update is called once per frame
 void Update()
 {
     Instance = this;
     //PlayerName = "Player#" + Random.Range(1000,9999);
 }