コード例 #1
0
 private void DeadAction(EntityBase entity)
 {
     if (entity != null)
     {
         object[]   args = new object[] { "Game/SkillPrefab/", base.ClassName };
         GameObject o    = GameLogic.EffectGet(Utils.GetString(args));
         o.transform.position = entity.position;
         SkillAloneAttrGoodBase.Add(base.m_Entity, o, true, Array.Empty <float>());
     }
 }
コード例 #2
0
    protected override void OnInstall()
    {
        string str  = base.m_SkillData.Args[0];
        float  num  = float.Parse(base.m_SkillData.Args[1]);
        int    num2 = int.Parse(base.m_SkillData.Args[2]);

        object[] args = new object[] { "Game/SkillPrefab/SkillAlone", str };
        this.obj = GameLogic.EffectGet(Utils.GetString(args));
        float[] singleArray1 = new float[] { num, (float)num2 };
        SkillAloneAttrGoodBase.Add(base.m_Entity, this.obj, false, singleArray1);
        base.m_Entity.AddNewRotateAttribute(this.obj);
    }
コード例 #3
0
    private void AIMoving()
    {
        float num = ((Updater.AliveTime - this.startTime) - this.delaytime) / this.jumptime;

        num = MathDxx.Clamp01(num);
        Vector3 vector = ((this.endpos - this.startpos) * num) + this.startpos;

        base.m_Entity.SetPosition(vector + new Vector3(0f, this.curve.Evaluate(num) * this.height, 0f));
        if (num == 1f)
        {
            this.obj = GameLogic.EffectGet("Effect/Boss/BossJumpHit5028");
            this.obj.transform.position = base.m_Entity.position;
            float[] args = new float[] { 1f };
            SkillAloneAttrGoodBase.Add(base.m_Entity, this.obj, true, args);
            this.bjumpend = true;
        }
    }