110,566
社区成员
发帖
与我相关
我的任务
分享
typedef enum {
E_OK, /** Okay to go */
E_NOT_READY, /** RpsInitialize invoked before ? */
E_BUSY, /** Not used */
E_TIMEOUT, /** Not used */
E_NO_RESOURCE, /** resources requried not available */
E_BAD_PARA, /** bad parameters */
E_MULTI_SOURCE, /** Not used */
E_INVALID_VERSION /** Not used */
} RpsError;
RpsAPI RpsError RpsInitialize(const char *conf);
enum RpsError{
E_OK,
E_NOT_READY,
E_BUSY,
E_TIMEOUT,
E_NO_RESOURCE,
E_BAD_PARA,
E_MULTI_SOURCE,
E_INVALID_VERSION
};
public class NewBehaviourScript : MonoBehaviour {
[DllImport("RPSDataManager.dll")]
unsafe ublic extern static RpsError RpsInitialize(string conf);
// Use this for initialization
unsafe void Start () {
RpsError err = RpsInitialize("RpsDataManager.API.txt");
if (err != 0) {
print("RpsInit failed!");
}
}
}