feat: initial commit

This commit is contained in:
ALittlePatate
2022-07-07 19:10:40 +02:00
commit b3b6fb2f77
13 changed files with 1204 additions and 0 deletions

17
Helpers/StateHelpers.cs Normal file
View File

@@ -0,0 +1,17 @@
using UnityEngine;
namespace SlimeRanger.Helpers
{
internal class StateHelpers
{
public static PlayerState GetPlayerState()
{
return UnityEngine.Object.FindObjectOfType<PlayerState>();
}
public static Vector3 GetPlayerPosition()
{
TeleportablePlayer tpp = UnityEngine.Object.FindObjectOfType<TeleportablePlayer>();
return tpp.playerEventHandler.Position.Get();
}
}
}