22 lines
513 B
C#
22 lines
513 B
C#
![]() |
using Sirenix.OdinInspector;
|
||
|
using UnityEngine;
|
||
|
|
||
|
namespace BlueWater
|
||
|
{
|
||
|
public class LiquidController : MonoBehaviour
|
||
|
{
|
||
|
[SerializeField, Required]
|
||
|
private GameObject _liquidObject;
|
||
|
|
||
|
[SerializeField, Required]
|
||
|
private Transform _spawnTransform;
|
||
|
|
||
|
private void Update()
|
||
|
{
|
||
|
if (Input.GetKey(KeyCode.Space))
|
||
|
{
|
||
|
Instantiate(_liquidObject, _spawnTransform.position, Quaternion.identity);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|