public void PlayerAttacked() { foreach (Transform enemy in EnemySet.transform) { EnemySetImage enemy_set = enemy.gameObject.GetComponent <EnemySetImage>(); MessageSetScript.message_set.MessageSet("敵を攻撃した。"); enemy_set.PlayerAttack(enemy_set.power); } Attack_flow_end(); }
private void Awake() { set = this; setimage = EnemySetImage.enemy_image; }
private void Awake() { enemy_image = this; }