Combu Manager class, it follows the Singleton pattern design (accessible through the 'instance' static property), it means that you shouldn't have more than one instance of this component in your scene.
More...
|
virtual void | Awake () |
|
IEnumerator | DownloadUrl (string url, WWWForm form, Action< string, string > onComplete) |
| Cancels all the current requests (immediately). More...
|
|
void | SecureRequest (WWWForm form) |
| Secure the WWWForm by signing the request. More...
|
|
|
ISocialPlatform | _defaultSocialPlatform |
|
CombuServerInfo | _serverInfo |
|
bool | downloading |
|
Combu Manager class, it follows the Singleton pattern design (accessible through the 'instance' static property), it means that you shouldn't have more than one instance of this component in your scene.
void Combu.CombuManager.CallWebservice |
( |
string |
url, |
|
|
WWWForm |
form, |
|
|
System.Action< string, string > |
onComplete |
|
) |
| |
Calls a webservice.
- Parameters
-
url | URL. |
form | Form. |
onComplete | On complete callback. |
void Combu.CombuManager.CancelRequest |
( |
| ) |
|
Cancels the current request (next frame).
static byte [] Combu.CombuManager.CaptureScreenshot |
( |
int |
thumbnailHeight = 720 , |
|
|
List< Camera > |
excludeCams = null |
|
) |
| |
|
static |
Captures the screen shot.
- Returns
- The screen shot.
- Parameters
-
thumbnailHeight | Thumbnail height. |
excludeCams | Exclude cams. |
WWWForm Combu.CombuManager.CreateForm |
( |
User |
user = null | ) |
|
Creates a new form to be passed to a webservice.
- Returns
- The form.
IEnumerator Combu.CombuManager.DownloadUrl |
( |
string |
url, |
|
|
WWWForm |
form, |
|
|
Action< string, string > |
onComplete |
|
) |
| |
|
protected |
Cancels all the current requests (immediately).
Downloads the content of an URL with the specified form.
- Returns
- The URL.
- Parameters
-
url | URL. |
form | Form. |
onComplete | On complete. |
static string Combu.CombuManager.EncryptMD5 |
( |
string |
inputString | ) |
|
|
static |
Encrypts a string in MD5.
- Returns
- The M d5.
- Parameters
-
static string Combu.CombuManager.EncryptSHA1 |
( |
string |
inputString | ) |
|
|
static |
Encrypts a string in SHA1.
- Returns
- The SH a1.
- Parameters
-
void Combu.CombuManager.GetServerInfo |
( |
Action< bool, CombuServerInfo > |
callback | ) |
|
Gets the server info.
- Parameters
-
string Combu.CombuManager.GetUrl |
( |
string |
relativeUrl | ) |
|
Gets the absolute URL from a relative.
- Returns
- The URL.
- Parameters
-
void Combu.CombuManager.Ping |
( |
bool |
onlyIfAuthenticated = true , |
|
|
Action< bool > |
callback = null |
|
) |
| |
Ping the server.
- Parameters
-
onlyIfAuthenticated | If set to true then it runs only if local user is authenticated. |
callback | Callback. |
void Combu.CombuManager.SecureRequest |
( |
WWWForm |
form | ) |
|
|
protected |
Secure the WWWForm by signing the request.
- Parameters
-
string Combu.CombuManager.achievementUIFunction |
GameObject Combu.CombuManager.achievementUIObject |
const string Combu.CombuManager.COMBU_VERSION = "2.1.14" |
bool Combu.CombuManager.dontDestroyOnLoad = true |
Should call DontDestroyOnLoad on the CombuManager gameObject? Recommended: set to true
string Combu.CombuManager.leaderboardUIFunction |
GameObject Combu.CombuManager.leaderboardUIObject |
bool Combu.CombuManager.logDebugInfo |
Print debug info in the console log.
int Combu.CombuManager.onlineSeconds = 120 |
The max seconds from now to a user's lastSeen to consider the online state.
float Combu.CombuManager.pingIntervalSeconds = 30f |
The ping interval in seconds (set 0 to disable automatic pings). Ping is currently used to mantain the online state of the local user and is automatically called only is the local user is authenticated.
int Combu.CombuManager.playingSeconds = 120 |
The max seconds from now to a user's lastSeen to consider the playing state.
string Combu.CombuManager.secretKey |
The secret key: it must match the define SECRET_KEY configured on the web.
bool Combu.CombuManager.setAsDefaultSocialPlatform |
Should set Combu as the active social platform? The previous platform is accessible from defaultSocialPlatform
string Combu.CombuManager.timezone |
string Combu.CombuManager.urlRootProduction |
The URL root for the production environment.
string Combu.CombuManager.urlRootStage |
The URL root for the stage environment.
bool Combu.CombuManager.useStage |
If true sets the stage as current environment (default: false for production).
ISocialPlatform Combu.CombuManager.defaultSocialPlatform |
|
get |
Gets the default social platform defined (this is set before Combu is set as activate, eventually).
The default social platform.
Gets the current singleton instance.
The instance.
bool Combu.CombuManager.isAuthenticated |
|
get |
bool Combu.CombuManager.isCancelling |
|
get |
Gets a value indicating whether this Combu.CombuManager is cancelling a webservice request.
true
if is cancelling; otherwise, false
.
bool Combu.CombuManager.isDownloading |
|
get |
Gets a value indicating whether this Combu.CombuManager is downloading from a webservice.
true
if is downloading; otherwise, false
.
bool Combu.CombuManager.isInitialized |
|
staticget |
Gets a value indicating whether the Singleton instance of Combu.CombuManager is initialized.
true
if is initialized; otherwise, false
.
User Combu.CombuManager.localUser |
|
staticget |
Gets the local user.
The local user.
Gets the Combu ISocialPlatform implementation.
The platform.
Gets the server info.
The server info.
The documentation for this class was generated from the following file:
- /Users/ziored/Documents/Projects/Unity/Empty Test/Assets/Combu/Scripts/CombuManager.cs