void Awake() { pool = GameObject.Find("ScrapObjectPool").GetComponent <ScrapPool>(); rb = GetComponent <Rigidbody2D>(); }
private void Awake() { current = this; ScrapArray = Resources.LoadAll <GameObject>("ScrapPrefabs") as GameObject[]; CreatePool(); }