コード例 #1
0
    public override void UpdateAction()
    {
        base.UpdateAction();

        if (NodeUtil.IsLastFrame(Owner))
        {
            if (NodeUtil.IsActivateAbility(Owner, 211))
            {
                NodeUtil.ChangeAction(NodeUtil.CreateEntity("CSlime", NodeUtil.VectorAdd(NodeUtil.GetPosition(Owner), NodeUtil.CreateVector3(0.04f, 0f, 0.04f))), "CSlimeCreate1Action");

                NodeUtil.ChangeAction(NodeUtil.CreateEntity("CSlime", NodeUtil.VectorMinus(NodeUtil.GetPosition(Owner), NodeUtil.CreateVector3(0.04f, 0f, 0.04f))), "CSlimeCreate2Action");
                NodeUtil.DestroyEntity(Owner);
            }

            else
            {
                NodeUtil.DestroyEntity(Owner);
            }
        }

        else
        {
        }
    }
コード例 #2
0
    void TimeLine_4()
    {
        if (NodeUtil.IsActivateAbility(Owner, 211))
        {
            NodeUtil.ChangeAction(NodeUtil.CreateEntity("GoblinDrunk", NodeUtil.VectorAdd(NodeUtil.GetPosition(Owner), NodeUtil.CreateVector3(0.4808326f, 0f, 0f))), "GoblinDrunkCreateAction");
        }

        else
        {
        }
    }