added item script in the scene

This commit is contained in:
Glence 2022-11-04 17:35:09 +08:00
parent d6804c09f4
commit be16fbed19
2 changed files with 2 additions and 1 deletions

View File

@ -182,6 +182,7 @@ namespace Sandbox
scriptEngine->AddScript(racoon, "PickAndThrow");
scriptEngine->AddScript(racoonCamera, "ThirdPersonCamera");
scriptEngine->AddScript(AI, "AIPrototype");
scriptEngine->AddScript(item, "Item");
auto raccoonShowcase = SHEntityManager::CreateEntity<SHRenderable, SHTransformComponent>();
auto& renderableShowcase = *SHComponentManager::GetComponent_s<SHRenderable>(raccoonShowcase);

View File

@ -4,7 +4,7 @@ using static PlayerController;
public class PickAndThrow : Script
{
public Vector3 throwForce = new Vector3(200.0f, 300.0f, 200.0f);
public Vector3 throwForce = new Vector3(100.0f, 200.0f, 100.0f);
public GameObject item;
private PlayerController pc;
private Camera cam;