FirstStatus.cs 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. using UnityEngine;
  2. using System.Collections;
  3. public class FirstStatus : IApplicationStatus
  4. {
  5. public override void OnEnterStatus()
  6. {
  7. Debug.Log("DPI :" + Screen.dpi + " FontSize" + GUIUtil.FontSize);
  8. InputOperationEventProxy.LoadEventCreater<CustomEvent>();
  9. InputManager.AddListener<CustomEvent>(OnEventCallBack);
  10. GameObject go = GameObjectManager.CreateGameObjectByPool("gogo");
  11. go.transform.position = new Vector3(0,0,300);
  12. go.transform.localScale = new Vector3(100, 100, 100);
  13. UIManager.OpenUIWindow<testWindow>();
  14. AnimSystem.Move(go, null, new Vector3(0, 0, 600), time:1,repeatType: RepeatType.PingPang);
  15. AnimSystem.Move(go, null, Vector3.one, callBack: (object[] obj) => { }
  16. , parameter: new object[] { });
  17. }
  18. //public void CallBackTest(InputNetworkEvent e)
  19. //{
  20. // Debug.Log(e.Serialize());
  21. //}
  22. public void OnEventCallBack(CustomEvent e)
  23. {
  24. Debug.Log(e.Serialize());
  25. }
  26. }