24 lines
374 B
C#
24 lines
374 B
C#
|
|
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()
|
||
|
|
{
|
||
|
|
|
||
|
|
}
|
||
|
|
}
|