// Use this for initialization void Start() { initialPosition = gameObject.transform.position; dsg = GameObject.Find("DataStarsGameObject").GetComponent <DataStarsGame>(); rb = gameObject.GetComponent <Rigidbody>(); }
public void Start() { dsg = GameObject.Find("DataStarsGameObject").GetComponent <DataStarsGame>(); }