public castSpell ( GameObject caster, int Rune1, int Rune2, int Rune3, bool ready ) : void | ||
caster | GameObject | Caster. |
Rune1 | int | Rune1. |
Rune2 | int | Rune2. |
Rune3 | int | Rune3. |
ready | bool | |
리턴 | void |
public void SpellMode() { //Casts a spell on right click. if (Input.GetMouseButtonDown(1) && (WindowDetectUW.CursorInMainWindow == true)) { PlayerMagic.castSpell(this.gameObject, PlayerMagic.ReadiedSpell, false); PlayerMagic.SpellCost = 0; } }
public void SpellMode() { //Casts a spell on right click. if ( (Input.GetMouseButtonDown(1)) && ((WindowDetectUW.CursorInMainWindow == true) || (MouseLookEnabled == true)) && (UWHUD.instance.window.JustClicked == false) && ((PlayerCombat.AttackCharging == false) && (PlayerCombat.AttackExecuting == false)) ) { PlayerMagic.castSpell(this.gameObject, PlayerMagic.ReadiedSpell, false); PlayerMagic.SpellCost = 0; UWHUD.instance.window.UWWindowWait(1.0f); } }