/// <summary> /// 攻撃スキル /// </summary> public void AttackCommand() { BattleStatusController target = GameObject.FindObjectOfType <BattleEnemyController>().GetComponent <BattleStatusController>(); GetComponent <BattleStatusController>().Attack(target); EndAction(); }
/// <summary> /// 行動(敵) /// </summary> public override void StartAction() { base.StartAction(); BattleStatusController target = GameObject.FindObjectOfType <BattlePlayerController>().GetComponent <BattleStatusController>(); GetComponent <BattleStatusController>().Attack(target); EndAction(); }
/// <summary> /// 攻撃する /// </summary> /// <param name="target"></param> public void Attack(BattleStatusController target) { Debug.Log(this.gameObject.name + " Attack"); target.Damage(m_power); }