// Execute the action public int Execute(HeroKitObject hko) { heroKitObject = hko; HeroObject heroObject = HeroObjectFieldValue.GetValueC(heroKitObject, 0); int getThisObject = 0; bool runThis = (heroObject != null); if (runThis) { getThisObject = IntegerFieldValue.GetValueC(heroKitObject, 1, heroObject); IntegerFieldValue.SetValueB(heroKitObject, 2, getThisObject); } // show debug message if (heroKitObject.debugHeroObject) { string debugMessage = "Integer: " + getThisObject; Debug.Log(HeroKitCommonRuntime.GetActionDebugInfo(heroKitObject, debugMessage)); } return(-99); }