private void Start() { spawnSorter = GameObject.Find("GameManager").GetComponent <PlayerSelection>(); scoreManager = GameObject.Find("GameManager").GetComponent <InSideJobManager>(); if (photonView.isMine) { StartCoroutine(WaitToFind()); StartCoroutine("WaitTarget"); } }
// 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>(); } }
private void Start() { Map = gameObject.GetComponent <InSideJobManager>(); }