23 lines
374 B
C#
Executable file
23 lines
374 B
C#
Executable file
using UnityEngine;
|
|
|
|
public class ShootCrystal : MonoBehaviour
|
|
{
|
|
// Start is called once before the first execution of Update after the MonoBehaviour is created
|
|
public int reload;
|
|
|
|
void Start()
|
|
{
|
|
InvokeRepeating("Shoot", 0, reload);
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
|
|
void Shoot()
|
|
{
|
|
|
|
}
|
|
}
|