예제 #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
 public void DeInit()
 {
     SkillAloneAttrGoodBase.DeInitData();
     this.OnGotoNextRoom = (Action <RoomGenerateBase.Room>)Delegate.Remove(this.OnGotoNextRoom, new Action <RoomGenerateBase.Room>(this.OnGotoNextRoomEvent));
     this.mDeadGoodMgr.DeInit();
     if (this._RoomGenerate != null)
     {
         this._RoomGenerate.DeInit();
         this._RoomGenerate = null;
     }
 }
예제 #3
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);
    }
예제 #4
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;
        }
    }
예제 #5
0
 protected override void OnUninstall()
 {
     SkillAloneAttrGoodBase.Remove(this.obj);
     base.m_Entity.RemoveRotateAttribute(this.obj);
 }
예제 #6
0
 protected override void OnEnd()
 {
     SkillAloneAttrGoodBase.Remove(this.obj);
     base.m_Entity.SetTrigger(false);
     base.m_Entity.mAniCtrlBase.UpdateAnimationSpeed("Skill", this.skillspeed);
 }