123456789101112131415161718192021222324252627282930313233343536373839 |
- using UnityEngine;
- using System.Collections;
- public class FirstStatus : IApplicationStatus
- {
- public override void OnEnterStatus()
- {
- Debug.Log("DPI :" + Screen.dpi + " FontSize" + GUIUtil.FontSize);
- InputOperationEventProxy.LoadEventCreater<CustomEvent>();
- InputManager.AddListener<CustomEvent>(OnEventCallBack);
- GameObject go = GameObjectManager.CreateGameObjectByPool("gogo");
- go.transform.position = new Vector3(0,0,300);
- go.transform.localScale = new Vector3(100, 100, 100);
- UIManager.OpenUIWindow<testWindow>();
- AnimSystem.Move(go, null, new Vector3(0, 0, 600), time:1,repeatType: RepeatType.PingPang);
- AnimSystem.Move(go, null, Vector3.one, callBack: (object[] obj) => { }
- , parameter: new object[] { });
- }
- //public void CallBackTest(InputNetworkEvent e)
- //{
- // Debug.Log(e.Serialize());
- //}
- public void OnEventCallBack(CustomEvent e)
- {
- Debug.Log(e.Serialize());
- }
- }
|