예제 #1
0
    private void Start()
    {
        spawnSorter  = GameObject.Find("GameManager").GetComponent <PlayerSelection>();
        scoreManager = GameObject.Find("GameManager").GetComponent <InSideJobManager>();

        if (photonView.isMine)
        {
            StartCoroutine(WaitToFind());
            StartCoroutine("WaitTarget");
        }
    }
예제 #2
0
 // Update is called once per frame
 void Update()
 {
     if (managerSciprt == null)
     {
         managerSciprt = GameObject.Find("GameManager").GetComponent <InSideJobManager>();
     }
     if (thiefCollecterScript == null)
     {
         thiefCollecterScript = GameObject.FindGameObjectWithTag("ThiefCollector").GetComponent <ThiefCollectorManager>();
     }
 }
예제 #3
0
 private void Start()
 {
     Map = gameObject.GetComponent <InSideJobManager>();
 }