Exemple #1
0
        // Description: Add panel to view which will be opened automatically for the requested duration
        // Parameters:
        //      PANEL_TYPE panel_type - The panel type (where the panel will be located)
        //		HANDLE_POSITION handle_position - the place where to place the handle for the panel
        //		float startDelay				- the selected time in seconds before the panel will be opened. -1 will disable this feature
        //		float duration					- the selected time in seconds for the panel to stay open. -1 the panel will not be closed.
        // return:
        //		0   - the function worked correctly
        //		NO_GAME_OBJECT	- there is no Kidoz gameobject
        public static int addPanelToView(PANEL_TYPE panel_type, HANDLE_POSITION handle_position, float startDelay, float duration)
        {
            if (instance == null)
            {
                return(NO_GAME_OBJECT);
            }

            kidozBridgeObject.Call("addPanelToView", (int)panel_type, (int)handle_position, startDelay, duration);

            return(0);
        }
Exemple #2
0
 // Description: Add panel to view which will be opened automatically for the requested duration
 // Parameters:
 //      PANEL_TYPE panel_type - The panel type (where the panel will be located)
 //		HANDLE_POSITION handle_position - the place where to place the handle for the panel
 //		float startDelay				- the selected time in seconds before the panel will be opened. -1 will disable this feature
 //		float duration					- the selected time in seconds for the panel to stay open. -1 the panel will not be closed.
 // return:
 //		0   - the function worked correctly
 //		NO_GAME_OBJECT	- there is no Kidoz gameobject
 public static int addPanelToView(PANEL_TYPE panel_type, HANDLE_POSITION handle_position, float startDelay, float duration)
 {
     //TODO: implement function
     return(0);
 }
Exemple #3
0
        //Basic function creation function.
        //Since Kidoz SDK should be activated only once use this function to create
        //a game object. If Kidoz game object was added to the scene there is no need to call this function



        // Description: Add panel to view
        // Parameters:
        //      PANEL_TYPE panel_type - The panel type (where the panel will be located)
        //		HANDLE_POSITION handle_position - the place where to place the handle for the panel
        // return:
        //		0   - the function worked correctly
        //		NO_GAME_OBJECT	- there is no Kidoz gameobject
        public static int addPanelToView(PANEL_TYPE panel_type, HANDLE_POSITION handle_position)
        {
            kidozin.addPanelToView((int)panel_type, (int)handle_position);

            return(0);
        }