Example #1
0
    // Use this for initialization
    void Start()
    {
        //메모리풀 세팅
        MemoryPoolManager.Instance.SetObject("ThrowMesh", 1);
        MemoryPoolManager.Instance.SetObject("BashEffect", 1);
        MemoryPoolManager.Instance.SetObject("BuffEffect", 1, FxCenter);
        MemoryPoolManager.Instance.SetObject("RecoveryHP", 10, FxCenter);
        MemoryPoolManager.Instance.SetObject("RecoveryMP", 10, FxCenter);

        PlayerIO.LoadData();

        moveCommand = new MoveCommand();

        for (int i = 0; i < 7; i++)
        {
            SkillCommands[i] = new SkillCommand(i);
        }
    }
 void Init()
 {
     PlayerIO.LoadData();
 }