CotC C# SDK for Unity  v1.4.0.1
Making social games is easy !
Public Member Functions | List of all members
CotcSdk.CotcGameObject Class Reference

Description

Place this object on all scenes where you would like to use CotC functionality, as described in this tutorial.

Then call GetCloud to get a Cloud object, which provides an entry point (through sub objects) to all functionality provided by the SDK.

Public Member Functions

Promise< CloudGetCloud ()
 Use this to get a Cloud object, as shown below: More...
 
Inheritance diagram for CotcSdk.CotcGameObject:

Member Function Documentation

◆ GetCloud()

Promise<Cloud> CotcSdk.CotcGameObject.GetCloud ( )

Use this to get a Cloud object, as shown below:

var cotc = FindObjectOfType<CotcGameObject>();
cotc.GetCloud(cloud => {
cloud.Login(...);
}
Returns
A promise that returns a Cloud object to be used for most operations. Although the returned object may be shared among multiple scenes, you need to place a CotcGameObject and call GetCloud on all your scenes to ensure proper operations.