示例#1
0
 // Use this for initialization
 void Start()
 {
     Animator      = GetComponentInChildren <Animator>();
     Rigidbody     = GetComponent <Rigidbody2D>();
     m_PhyCtroller = GetComponent <PhyCtroller>();
     m_Collider    = GetComponent <BoxCollider2D>();
 }
 // Use this for initialization
 void Start()
 {
     m_PhyCtroller = GetComponent <PhyCtroller>();
     m_Rigibody    = GetComponent <Rigidbody2D>();
     OnStart();
 }