Exemplo n.º 1
0
    private void Awake()
    {
        Assert(instance == null);
        instance = this;
        logMode  = this.cfgMode;
        int num = 8;

        for (int i = 0; i < num; i++)
        {
            s_logers[i] = new SLogObj();
        }
    }
Exemplo n.º 2
0
    private void Awake()
    {
        DebugHelper.Assert(DebugHelper.instance == null);
        DebugHelper.instance = this;
        DebugHelper.logMode  = this.cfgMode;
        int num = 8;

        for (int i = 0; i < num; i++)
        {
            DebugHelper.s_logers[i] = new SLogObj();
        }
    }
Exemplo n.º 3
0
    private void Awake()
    {
        Assert(instance == null);
        instance = this;
        logMode  = this.cfgMode;
        int num = 4;

        for (int i = 0; i < num; i++)
        {
            s_logers[i] = new SLogObj();
        }
        OpenLoger(SLogCategory.Normal, string.Format("{0}/sgame_log.txt", Application.persistentDataPath));
        OpenLoger(SLogCategory.Skill, string.Format("{0}/sgame_skill.txt", Application.persistentDataPath));
        OpenLoger(SLogCategory.Misc, string.Format("{0}/sgame_misc.txt", Application.persistentDataPath));
    }