void Start() { g = GameObject.FindGameObjectWithTag("GameController").GetComponent <Gravity>(); rb = GetComponent <Rigidbody2D>(); g.AddBody(rb); }
void Start() { g = GameObject.FindGameObjectWithTag("GameController").GetComponent<Gravity>(); rb = GetComponent<Rigidbody2D>(); g.AddBody(rb); }