RuleController.cs 310 B

123456789101112131415
  1. 
  2. using FairyGUI;
  3. namespace GFGGame
  4. {
  5. public class RuleController
  6. {
  7. public static void ShowRuleView(EventContext context)
  8. {
  9. GObject obj = context.sender as GObject;
  10. int ruleId = (int)obj.data;
  11. ViewManager.Show<RuleView>(ruleId);
  12. }
  13. }
  14. }