示例#1
0
    //マナポイント追加
    public void Add_SkillPoints(float value)
    {
        status.AddMP(value);

        if (canvas != null)
        {
            canvas.updatePlayerUI();
        }
        if (status.getMP() >= 100)
        {
            if (manaIsFull != null)
            {
                status.UseManapoint(100);
                manaIsFull();
            }
        }
    }
示例#2
0
 //
 public void initializeCanvas()
 {
     onDead();
     //active canvas
     canvas = GetComponentInChildren <PlayerCanvas>();
     if (canvas == null)
     {
         return;
     }
     canvas.Init(this);
     canvas.updatePlayerUI();
 }