예제 #1
0
    public override void Mode_Update(Charactor _obj)
    {
        base.Mode_Update(_obj);
        //一定時間でオブジェクトを消去
        if (_obj.modetime > 0.01)
        {
            //MPを増やす
            TestPlayer p = GameObject.Find("TestPlayer").GetComponent <TestPlayer>();
            TestEnemy  e = _obj.GetComponent <TestEnemy>();

            p.status.MP += e.MP;
            _obj.audioPlayer.Play(14);
            _obj.Delete();
        }
    }