예제 #1
0
 void Start()
 {
     g  = GameObject.FindGameObjectWithTag("GameController").GetComponent <Gravity>();
     rb = GetComponent <Rigidbody2D>();
     g.AddBody(rb);
 }
예제 #2
0
 void Start()
 {
     g = GameObject.FindGameObjectWithTag("GameController").GetComponent<Gravity>();
     rb = GetComponent<Rigidbody2D>();
     g.AddBody(rb);
 }