Esempio n. 1
0
 protected override void OnInstall()
 {
     Updater.AddUpdate("WeaponSprintBase", new Action <float>(this.OnUpdate), false);
     base.OnAttackStartStartAction = new Action(this.OnAttackStartStart);
     base.OnAttackStartEndAction   = new Action(this.OnAttackStartEnd);
     base.OnInstall();
 }
Esempio n. 2
0
 public void Init(EntityBase entity)
 {
     this.m_Entity = entity;
     this.InitHittedWhiteCurve();
     this.InitHittedAnimation();
     object[] args = new object[] { this.m_Entity.m_EntityData.CharID };
     Updater.AddUpdate(Utils.FormatString("{0}.HitEdit", args), new Action <float>(this.OnUpdate), false);
 }
 private void OnEnable()
 {
     if (!this.bInit)
     {
         Updater.AddUpdate("EntityAttackBase", new Action <float>(this.UpdateProcess), false);
         this.bInit = true;
     }
 }
 protected override void OnInstall()
 {
     this.attack_delaytime = float.Parse(base.m_SkillData.Args[0]);
     this.hitratio         = float.Parse(base.m_SkillData.Args[1]);
     this.range            = float.Parse(base.m_SkillData.Args[2]);
     this.range            = 10f;
     this.CreateSkillAlone();
     Updater.AddUpdate("SkillAlone1043", new Action <float>(this.OnUpdate), false);
 }
 public BodyMaskCamera(EntityBase entity)
 {
     this.m_Entity = entity;
     if (!this.m_Entity.IsSelf)
     {
         object[] args = new object[] { this.m_Entity.m_EntityData.CharID };
         Updater.AddUpdate(Utils.FormatString("{0}.BodyMaskCamera", args), new Action <float>(this.OnUpdate), false);
     }
 }
 public void Begin()
 {
     if (!this.bInit)
     {
         this.bInit     = true;
         this.starttime = Updater.AliveTime;
         Updater.AddUpdate("CameraStartCtrl", new Action <float>(this.OnUpdate), false);
     }
 }
    protected override void OnOpen()
    {
        IProxy proxy = Facade.Instance.RetrieveProxy("NetDoingProxy");

        this.mTransfer          = proxy.Data as NetDoingProxy.Transfer;
        this.mCanvasGroup.alpha = 0f;
        this.seq_delay          = TweenSettingsExtensions.SetUpdate <Sequence>(TweenSettingsExtensions.Append(TweenSettingsExtensions.AppendInterval(DOTween.Sequence(), 0.6f), ShortcutExtensions46.DOFade(this.mCanvasGroup, 0.6666667f, 1f)), true);
        this.SetLoading(0);
        this.seq_load = TweenSettingsExtensions.SetUpdate <Sequence>(TweenSettingsExtensions.SetLoops <Sequence>(TweenSettingsExtensions.AppendCallback(TweenSettingsExtensions.AppendInterval(DOTween.Sequence(), 0.5f), new TweenCallback(this, this.< OnOpen > m__0)), -1), true);
        Updater.AddUpdate("netdoing", new Action <float>(this.OnUpdate), true);
    }
 protected override void OnInstall()
 {
     if (base.m_SkillData.Args.Length < 2)
     {
         object[] args = new object[] { base.m_SkillData.Args.Length };
         SdkManager.Bugly_Report("SkillAlone1067.cs", Utils.FormatString("SkillAlone1067 m_SkillData.Args.Length = {0}", args));
     }
     else if ((float.TryParse(base.m_SkillData.Args[0], out this.range) && int.TryParse(base.m_SkillData.Args[1], out this.debuffid)) && (base.m_Entity != null))
     {
         Updater.AddUpdate("SkillAlone1067", new Action <float>(this.OnUpdate), false);
     }
 }
Esempio n. 9
0
 protected override void OnInstall()
 {
     if (base.m_Entity.IsElite)
     {
         this.distance = 5f;
     }
     Updater.AddUpdate("Weapon1082", new Action <float>(this.OnUpdate), false);
     base.OnAttackStartStartAction = new Action(this.OnAttackStartStart);
     base.OnAttackStartEndAction   = new Action(this.OnAttackStartEnd);
     this.curve = LocalModelManager.Instance.Curve_curve.GetCurve(0x186b9);
     base.OnInstall();
 }
Esempio n. 10
0
    protected override void OnInstall()
    {
        base.AttackEffect = "WeaponHand1066Effect";
        this.redline      = Object.Instantiate <GameObject>(ResourceManager.Load <GameObject>("Game/Bullet/Bullet1066_RedLine"));
        this.redline.SetParentNormal(base.m_Entity.m_Body.transform);
        this.ctrl = this.redline.GetComponent <BulletRedLineCtrl>();
        this.ctrl.SetLine(true, 0f);
        this.time = 0f;
        Vector3 vector = new Vector3(MathDxx.Sin(base.m_Entity.eulerAngles.y + 90f), 0f, MathDxx.Cos(base.m_Entity.eulerAngles.y + 90f)) * 0.5f;

        RayCastManager.CastMinDistance(base.m_Entity.m_Body.transform.position + vector, base.m_Entity.eulerAngles.y, false, out float num);
        RayCastManager.CastMinDistance(base.m_Entity.m_Body.transform.position - vector, base.m_Entity.eulerAngles.y, false, out float num2);
        this.mindis = (num >= num2) ? num2 : num;
        Updater.AddUpdate("Weapon1066", new Action <float>(this.OnUpdate), false);
        base.OnInstall();
    }
Esempio n. 11
0
 public void Init(EntityBase entity, int count, float[] angles)
 {
     this.Deinit();
     this.time = 0f;
     for (int i = 0; i < count; i++)
     {
         GameObject child = Object.Instantiate <GameObject>(ResourceManager.Load <GameObject>("Game/Bullet/Bullet1066_RedLine"));
         child.SetParentNormal(entity.m_Body.transform);
         child.transform.localRotation = Quaternion.Euler(0f, angles[i], 0f);
         BulletRedLineCtrl component = child.GetComponent <BulletRedLineCtrl>();
         component.SetLine(true, 0f);
         Vector3 vector = new Vector3(MathDxx.Sin(angles[i] + 90f), 0f, MathDxx.Cos(angles[i] + 90f)) * 0.5f;
         RayCastManager.CastMinDistance(entity.m_Body.transform.position + vector, entity.eulerAngles.y, false, out float num2);
         RayCastManager.CastMinDistance(entity.m_Body.transform.position - vector, entity.eulerAngles.y, false, out float num3);
         this.mindiss.Add((num2 >= num3) ? num3 : num2);
         this.list.Add(component);
     }
     Updater.AddUpdate("Weapon1066", new Action <float>(this.OnUpdate), false);
 }
Esempio n. 12
0
 public void Init(bool IgnoreTimeScale = false)
 {
     this.mIgnoreTimeScale = IgnoreTimeScale;
     Updater.AddUpdate("ActionBasic", new Action <float>(this.OnUpdate), IgnoreTimeScale);
     this.OnInit1();
 }
Esempio n. 13
0
 public void Init(EntityBase entity)
 {
     this.m_Entity = entity;
     Updater.AddUpdate("ActionBattle", new Action <float>(this.OnUpdate), false);
     this.OnInits();
 }
Esempio n. 14
0
 public void Init()
 {
     this.curve = LocalModelManager.Instance.Curve_curve.GetCurve(0x186a7);
     Updater.AddUpdate("HeroDropCtrl", new Action <float>(this.OnUpdate), false);
     this.action.Init(false);
 }
Esempio n. 15
0
 protected override void OnInstall()
 {
     this.delaytime = float.Parse(base.m_SkillData.Args[0]);
     Updater.AddUpdate("SkillAlone1037", new Action <float>(this.OnUpdate), false);
 }
Esempio n. 16
0
 public void Init()
 {
     Updater.AddUpdate("DeadGoodCtrl", new Action <float>(this.OnUpdate), false);
 }
Esempio n. 17
0
 protected override void OnInstall()
 {
     Updater.AddUpdate("Weapon1090", new Action <float>(this.OnUpdate), false);
 }
Esempio n. 18
0
 protected override void OnInstall()
 {
     this.bRotate = true;
     Updater.AddUpdate("Weapon5044", new Action <float>(this.OnUpdate), false);
 }
 private void update_add()
 {
     this.update_remove();
     Updater.AddUpdate("BattleUIBossHPCtrl", new Action <float>(this.OnUpdate), false);
 }