public override void ItemUse(string Name) { PlayerManager.Player.Hp.Recovery(Recovery); LogManager.UseItemLog(Name, ReturnID()); LogManager.RecoveryHpLog(Name, 50); DamageTextManager.Make(Recovery, PlayerManager.Player.GameObject.transform.position.x, PlayerManager.Player.GameObject.transform.position.y, new Color(0, 255, 0), PlayerManager.Player.GameObject.transform); EfectManager.efecton("kaihukuefect", PlayerManager.Player.GameObject.transform.position.x, PlayerManager.Player.GameObject.transform.position.y, PlayerManager.Player.GameObject); AudioManager.AudioON(6); }
public virtual void Atack(GameObject Playerobj) { Damage Damage = new Damage(); int FinalDamage = Damage.Check(Lv.Value, Str.Value, PlayerManager.Player.Lv.Value, PlayerManager.Player.Vit.Value); DamageTextManager.Make(FinalDamage, Playerobj.transform.position.x, Playerobj.transform.position.y, new Color(255, 0, 0), Playerobj.transform); LogManager.MakeDamageLog(PlayerManager.Player.Name.Value, FinalDamage); PlayerManager.Player.Hp.Damage(FinalDamage); Vector3 Playerpos = Playerobj.gameObject.transform.position; EfectManager.efecton("Kamitukiefect", Playerpos.x, Playerpos.y, Playerobj);//エフェクト作成 AudioManager.AudioON(8); }
public IEnumerator ChargeStart() { yield return(new WaitForSeconds(ChargeTime / 2)); ChargeNow = true; Efect = EfectManager.efecton("tameefect", PlayerManager.Player.GameObject.transform.position.x, PlayerManager.Player.GameObject.transform.position.y, PlayerManager.Player.GameObject); AudioManager.AudioON(4); PlayerManager.Player.MoveSpeed.SetChargeSpeed(); yield return(new WaitForSeconds(ChargeTime / 2)); Efect.GetComponent <Animator>().SetFloat("Speed", 2.0f); PlayerManager.Player.SetChargeSkill(); }
public void Damage(Dictionary <int, Enemy> EnemyList) { foreach (Enemy enemy in EnemyList.Values) { if (!enemy.DeathCheck) { EfectManager.efecton("kiriefect", enemy.transform.position.x, enemy.transform.position.y, enemy.gameObject); Damage Damage = new Damage(); int FinalDamage = Damage.Check(PlayerManager.Player.Lv.Value * 2, PlayerManager.Player.Str.Value, enemy.Lv.Value, enemy.Vit.Value); DamageTextManager.Make(FinalDamage, enemy.transform.position.x, enemy.transform.position.y, new Color(255, 255, 255), enemy.transform); LogManager.MakeDamageLog(enemy.Name.Value, FinalDamage); enemy.Hp.Damage(FinalDamage); } } }