示例#1
0
 // Start is called before the first frame update
 void Start()
 {
     rb2d           = GetComponent <Rigidbody2D>();
     anim           = GetComponent <Animator>();
     wallReflection = GetComponent <WallReflection>();
     prevYPos       = transform.localPosition.y;
     prevXPos       = transform.localPosition.x;
 }
示例#2
0
 // Start is called before the first frame update
 void Start()
 {
     rb2d           = GetComponent <Rigidbody2D>();
     wallReflection = GetComponent <WallReflection>();
 }