ブロックビームの作成
ブロックビーム
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BlockBeam : BeamBase
{
public GameObject blockPrefab;
private void Start()
{
Invoke("Gene", 1.2f);
}
void Gene()
{
GameObject block = Instantiate(blockPrefab, transform.position, Quaternion.identity);
AudioSource.PlayClipAtPoint(Sound, Camera.main.transform.position);
Destroy(block, 15.0f);
}
}
【2021版】X_Mission(全34回)
他のコースを見るブロックビーム
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BlockBeam : BeamBase
{
public GameObject blockPrefab;
private void Start()
{
Invoke("Gene", 1.2f);
}
void Gene()
{
GameObject block = Instantiate(blockPrefab, transform.position, Quaternion.identity);
AudioSource.PlayClipAtPoint(Sound, Camera.main.transform.position);
Destroy(block, 15.0f);
}
}
ブロックビームの作成