我想在变量,float,int等中添加sprite.position值
有点像:
// HEADER文件:
int *spritePositionX;
int *spritePositionY;
//实施文件
spritePosition = sprite.position.x;
spritePosition = sprite.position.y;
谢谢!
答案 0 :(得分:2)
头:
CGPoint spritePosition;
实现:
spritePosition = sprite.position;
// spritePosition = CGPointMake(sprite.position.x, sprite.position.y);