コード例 #1
0
    // returns the custom data associated with an dynamic variable updates
    void CleverTapExperimentMessagesDidUpdateCallback()
    {
        Debug.Log("unity received experiemnt messages updated");

        bool          boolVar    = CleverTapBinding.GetBooleanVariable("booleanVar", false);
        double        doubleVar  = CleverTapBinding.GetDoubleVariable("doubleVar", 1.5);
        List <double> listDouble = CleverTapBinding.GetListOfDoubleVariable("listdouble", null);
        Dictionary <string, double> mapDouble = CleverTapBinding.GetMapOfDoubleVariable("mapDouble", null);

        Debug.Log("Bool-" + boolVar);
        Debug.Log("doubleVar-" + doubleVar);
        Debug.Log("listDouble-" + listDouble);
        Debug.Log("mapDouble-" + mapDouble);
    }