add doug to dialogue, start grandma quest

This commit is contained in:
2026-04-11 18:34:16 -05:00
parent 6491a3df11
commit 54db4e4b73
15 changed files with 1049 additions and 53 deletions
+27
View File
@@ -0,0 +1,27 @@
using UnityEngine;
public class Ballgun : Tool
{
[Header("Ball Gun Parameters")]
public float shootForce = 10;
public GameObject ball;
public float ballLifeTime = 5;
public override void Use()
{
GameObject newBall = Instantiate(ball);
newBall.transform.position = transform.position;
Vector3 direction = transform.forward * shootForce;
direction += GameManager.Instance.GetPlayerController().GetVelocity();
newBall.GetComponent<Rigidbody>().AddForce(direction, ForceMode.Impulse);
Destroy(newBall, ballLifeTime);
}
public override void UseAlt()
{
throw new System.NotImplementedException();
}
}
+2
View File
@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 8adaf1de0b489444189e21893ccde9b5