예제 #1
0
 /*************************************  Unity API ****************************************/
 #region Unity API
 void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     if (instance != this)
     {
         Debug.LogError("instance object should be a singleton.");
         return;
     }
     if (controllerlink == null)
     {
         controllerlink = new Pvr_ControllerLink(this.gameObject.name);
     }
 }
 /*************************************  Unity API ****************************************/
 #region Unity API
 void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     if (instance != this)
     {
         PLOG.E("instance object should be a singleton.");
         return;
     }
     if (controllerlink == null)
     {
         controllerlink = new Pvr_ControllerLink(this.gameObject.name);
     }
     else
     {
         BindService();
     }
 }