add some extra assets FX and SFX
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
|
||||
namespace NobleMuffins.LimbHacker.Examples
|
||||
{
|
||||
[RequireComponent(typeof(Button))]
|
||||
public class RestartButton : MonoBehaviour
|
||||
{
|
||||
public Spawner spawner;
|
||||
|
||||
private Button button;
|
||||
|
||||
void Start()
|
||||
{
|
||||
button = gameObject.GetComponent<Button>();
|
||||
}
|
||||
|
||||
void Update()
|
||||
{
|
||||
button.visible = spawner.CanInstantiate;
|
||||
}
|
||||
|
||||
void OnClick()
|
||||
{
|
||||
spawner.Instantiate();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user