敵がFireBallを発射する1(アニメーションで実行)
![Dc5a1a6f c6ba 4615 9277 b972a68f7fe4](https://codegenius.org/uploads/slide/image/9029/dc5a1a6f-c6ba-4615-9277-b972a68f7fe4.jpeg)
![Eb7025d0 eee2 4a18 93a3 f97b1479b7dc](https://codegenius.org/uploads/slide/image/9030/eb7025d0-eee2-4a18-93a3-f97b1479b7dc.jpeg)
![41c295fd 4f77 4549 84bf 8d125ac2c7c6](https://codegenius.org/uploads/slide/image/9031/41c295fd-4f77-4549-84bf-8d125ac2c7c6.jpeg)
アニメーションで発射
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class EnemyShot : MonoBehaviour
{
public GameObject shotPrefab;
public GameObject shotPoint;
public void Shot()
{
Instantiate(shotPrefab, shotPoint.transform.position, Quaternion.identity);
}
}
![Ea075730 3978 4b30 9664 91e24b84c9f5](https://codegenius.org/uploads/slide/image/9032/ea075730-3978-4b30-9664-91e24b84c9f5.jpeg)
![9126a614 3b83 4b01 9545 ba3edbedff37](https://codegenius.org/uploads/slide/image/9033/9126a614-3b83-4b01-9545-ba3edbedff37.jpeg)
![B395441a b43e 44c6 a887 ad2393e829e0](https://codegenius.org/uploads/slide/image/9034/b395441a-b43e-44c6-a887-ad2393e829e0.jpeg)
![Eb2fd786 0f56 402a 8630 564b113940c7](https://codegenius.org/uploads/slide/image/9035/eb2fd786-0f56-402a-8630-564b113940c7.jpeg)
![A6b20a89 3fec 4ab3 8f9f 6d711af86785](https://codegenius.org/uploads/slide/image/9036/a6b20a89-3fec-4ab3-8f9f-6d711af86785.jpeg)
【2022版】ActionGame2D(全33回)
他のコースを見る![Dc5a1a6f c6ba 4615 9277 b972a68f7fe4](https://codegenius.org/uploads/slide/image/9029/dc5a1a6f-c6ba-4615-9277-b972a68f7fe4.jpeg)
![Eb7025d0 eee2 4a18 93a3 f97b1479b7dc](https://codegenius.org/uploads/slide/image/9030/eb7025d0-eee2-4a18-93a3-f97b1479b7dc.jpeg)
![41c295fd 4f77 4549 84bf 8d125ac2c7c6](https://codegenius.org/uploads/slide/image/9031/41c295fd-4f77-4549-84bf-8d125ac2c7c6.jpeg)
アニメーションで発射
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class EnemyShot : MonoBehaviour
{
public GameObject shotPrefab;
public GameObject shotPoint;
public void Shot()
{
Instantiate(shotPrefab, shotPoint.transform.position, Quaternion.identity);
}
}
![Ea075730 3978 4b30 9664 91e24b84c9f5](https://codegenius.org/uploads/slide/image/9032/ea075730-3978-4b30-9664-91e24b84c9f5.jpeg)
![9126a614 3b83 4b01 9545 ba3edbedff37](https://codegenius.org/uploads/slide/image/9033/9126a614-3b83-4b01-9545-ba3edbedff37.jpeg)
![B395441a b43e 44c6 a887 ad2393e829e0](https://codegenius.org/uploads/slide/image/9034/b395441a-b43e-44c6-a887-ad2393e829e0.jpeg)
![Eb2fd786 0f56 402a 8630 564b113940c7](https://codegenius.org/uploads/slide/image/9035/eb2fd786-0f56-402a-8630-564b113940c7.jpeg)
![A6b20a89 3fec 4ab3 8f9f 6d711af86785](https://codegenius.org/uploads/slide/image/9036/a6b20a89-3fec-4ab3-8f9f-6d711af86785.jpeg)
敵がFireBallを発射する1(アニメーションで実行)