// Start is called before the first frame update void Start() { waypoints = coinConfig.GetWaypoints(); transform.position = waypoints[currentIndex].transform.position; coin = gameObject.GetComponent <Coin>(); gameplay = FindObjectOfType <CoinDropGamePlay>(); }
// Start is called before the first frame update void Awake() { manager = FindObjectOfType <CoinDropMainManager>(); gameplay = FindObjectOfType <CoinDropGamePlay>(); }