public static unsafe PlayerProps *CreatePlayerProps() { PlayerProps *props = (PlayerProps *)malloc((ulong)sizeof(PlayerProps)); // init fields props->Health = 1.0f; props->Hunger = 1.0f; return(props); }
void Start() { m_PlayerProps = PlayerProps.CreatePlayerProps(); }