19 lines
339 B
C#
19 lines
339 B
C#
using UnityEngine;
|
|
|
|
public class FeedingDEV : MonoBehaviour
|
|
{
|
|
public GameObject[] baits;
|
|
|
|
private void Start()
|
|
{
|
|
}
|
|
|
|
private void Update()
|
|
{
|
|
if (Input.GetMouseButtonDown(0))
|
|
{
|
|
Object.Instantiate(baits[0], base.transform.position, Quaternion.identity).GetComponent<Rigidbody>().AddForce(base.transform.forward * 600f);
|
|
}
|
|
}
|
|
}
|