コード例 #1
0
        /// <summary>
        /// A method to add a placard.
        /// </summary>
        /// <param name="placard">
        /// The placard to add.
        /// </param>
        public void AddPlacard(Placard placard)
        {
            if (debug)
            {
                AddedPlacard(addPlacardText.text);
                return;
            }
            string placard_json = JsonMapper.ToJson(placard);

            Application.ExternalCall("DrupalUnityInterface.addPlacard", gameObject.name, "AddedPlacard", placard_json);
        }
コード例 #2
0
        /// <summary>
        /// A method to select a placard.
        /// </summary>
        /// <param name="placard">
        /// The placard to select.
        /// </param>
        public void SelectPlacard(Placard placard)
        {
            if (debug)
            {
                Debug.Log("Hello");
                OnPlacardSelected(placard);
                return;
            }
            string placard_json = JsonMapper.ToJson(placard);

            TriggerEvent("placard_selected", placard_json);
        }