Ejemplo n.º 1
0
 private static void TestDebugModule()
 {
     //Test log
     DebugMgr.Log("1");
     DebugMgr.LogWarning("2");
     DebugMgr.LogError("3");
 }
Ejemplo n.º 2
0
    private void OnRankingCallback(ActionResult actionResult)
    {
        Response1001Pack pack = actionResult.GetValue <Response1001Pack>();

        if (pack == null)
        {
            return;
        }
        DebugMgr.Log(pack.PageCount);
    }
Ejemplo n.º 3
0
    private static void TestResModule()
    {
        //Test 资源加载
        ResMgr.S.LoadAsset("Assets/GameRes/Prefabs/TestRes.prefab", typeof(GameObject), (success, asset) =>
        {
            DebugMgr.Log("加载测试prefab成功?" + success);
            GameObject a         = GameObject.Instantiate(asset) as GameObject;
            a.transform.position = new Vector3(1, 2, 3);
            DebugMgr.Log("设置" + a.name + "位置:" + a.transform.position);
        }
                           );

        ResMgr.S.LoadAsset("Assets/GameRes/Prefabs/TestRes.prefab", typeof(GameObject), (success, asset) =>
        {
            DebugMgr.Log("第二次加载测试prefab成功?" + success);
            GameObject a         = GameObject.Instantiate(asset) as GameObject;
            a.transform.position = new Vector3(3, 3, 3);
            DebugMgr.Log("设置" + a.name + "位置:" + a.transform.position);
        }
                           );
    }
Ejemplo n.º 4
0
 public override void OpenUI(params object[] param)
 {
     base.OpenUI(param);
     DebugMgr.Log("打开游戏开始面板");
 }