added item script in the scene
This commit is contained in:
parent
d6804c09f4
commit
be16fbed19
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue