using FairyGUI; namespace GFGGame { public class RuleController { public static void ShowRuleView(EventContext context) { GObject obj = context.sender as GObject; int ruleId = (int)obj.data; ViewManager.Show<RuleView>(ruleId); } } }