private static void ExecuteHarass() { if (W.StillJumped()) { W.Cast(); } if (MenuLocal["Harass.UseQ"].Cast <CheckBox>().CurrentValue&& Q.CanCast(Target)) { PlayerSpells.CastQ(Target); } var harassUseW = MenuLocal["Harass.UseW"].Cast <ComboBox>().CurrentValue; if (harassUseW != 0 && W.CanCast(Target)) { if (harassUseW == 1) { CastW(); } else if (harassUseW == 2 && Target.HasMarkedWithQ()) { CastW(); } } if (MenuLocal["Harass.UseE"].Cast <CheckBox>().CurrentValue&& E.CanCast(Target)) { PlayerSpells.CastE(Target); } }
private static void ExecuteToggle() { if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo) || Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Harass)) { return; } if (W.StillJumped()) { W.Cast(); } if (MenuLocal["Toggle.UseQ"].Cast <CheckBox>().CurrentValue&& Q.CanCast(Target)) { PlayerSpells.CastQ(Target); } if (MenuLocal["Toggle.UseW"].Cast <CheckBox>().CurrentValue&& W.CanCast(Target)) { PlayerSpells.CastW(Target, true); } if (MenuLocal["Toggle.UseE"].Cast <CheckBox>().CurrentValue&& E.CanCast(Target)) { PlayerSpells.CastE(Target); } }
public override void NextAnimation(PlayerSpells pSpells) { if (pSpells.attackNumber[pSpells.curSpellTitle] == 2) { if ((pSpells.movement.direction == directionOfPrevForce && (pSpells.myTransform.position.x - pSpells.startMovePosition[pSpells.curSpellTitle]) * directionOfPrevForce > 0f) || (pSpells.movement.direction != directionOfPrevForce && (pSpells.myTransform.position.x - pSpells.startMovePosition[pSpells.curSpellTitle]) * directionOfPrevForce < 0f)) { pSpells.movement.canFlip = true; pSpells.movement.FlipCharacterDirection(); pSpells.movement.canFlip = false; } } }
void OnTriggerEnter2D(Collider2D col) { if (col.gameObject.name == "Player") { PlayerSpells playerSpells = col.gameObject.GetComponent <PlayerSpells>(); if (pickupType.spellPrefab) { playerSpells.AddSpellPrefab(pickupType.spellPrefab); } Instantiate(PE, ThisObject.position, ThisObject.rotation); AudioManager.PlaySfx("Powerup"); Destroy(gameObject); } }
public virtual void ForceTheCharacter(PlayerSpells pSpells) { Debug.Log("DEFAULT FORCE METHOD"); }
public virtual void NextAnimation(PlayerSpells pSpells) { Debug.Log("DEFAULT NEXT ANIMATION METHOD"); }