void Awake() { player = GameObject.FindGameObjectWithTag("Player").transform; nowRoadX = (int)this.transform.position.x; pool = GameObject.Find("LevelObjectPool").GetComponent <LevelObjectPool>(); }
void Awake() { _instance = this; LevelPool = GameObject.Find("LevelObjectPool").GetComponent <LevelObjectPool>(); pool = GameObject.Find("ObjectPool").GetComponent <ObjectPool>(); }