override protected void MessageFun(string messageKey, object param1, object param2) { if (messageKey.CompareTo(Hi5_Glove_Interaction_Message.Hi5_MessageMessageKey.messageObjectEvent) == 0) { Hi5_Glove_Interaction_Object_Event_Data data = param1 as Hi5_Glove_Interaction_Object_Event_Data; if (data.mObjectId == ObjectItem.idObject) { if (data.mEventType == EEventObjectType.EClap) { ObjectItem.ChangeColor(Color.gray); if (!isTrigger) { Hi5_Interaction_Message.GetInstance().DispenseMessage(Hi5_MessageKey.messageObjectReset, null, null); isTrigger = true; } } else if (data.mEventType == EEventObjectType.EPoke) { ObjectItem.ChangeColor(Color.red); } else if (data.mEventType == EEventObjectType.EStatic) { } } } }