Makinom  2.21.0
API Documentation
GamingIsLove.Makinom.SceneTargetInstance Class Reference
Inheritance diagram for GamingIsLove.Makinom.SceneTargetInstance:
GamingIsLove.Makinom.ISaveData

Public Member Functions

 SceneTargetInstance (string sceneName, int spawnID)
 
bool LoadScene ()
 
void SpawnPlayer (Vector3 offset)
 
void Spawn (GameObject obj, Vector3 offset)
 
override string ToString ()
 
DataObject SaveGame ()
 Used to save the data - you need to add the data to a GamingIsLove.Makinom.DataObject. More...
 
void LoadGame (DataObject data)
 Used to load the data - you need to get the data from the GamingIsLove.Makinom.DataObject. More...
 

Public Attributes

string sceneName = ""
 
SceneLoadType loadType = SceneLoadType.LoadLevel
 
SceneTargetType positionType = SceneTargetType.SpawnID
 
int spawnID = 0
 
Vector3 position = Vector3.zero
 
Vector3 rotation = Vector3.zero
 
Vector3 scale = Vector3.one
 

Properties

bool Exists [get]
 
bool IsLoaded [get]
 

Member Function Documentation

◆ LoadGame()

void GamingIsLove.Makinom.SceneTargetInstance.LoadGame ( DataObject  data)

Used to load the data - you need to get the data from the GamingIsLove.Makinom.DataObject.

Parameters
dataA GamingIsLove.Makinom.DataObject containing the data.

Implements GamingIsLove.Makinom.ISaveData.

◆ SaveGame()

DataObject GamingIsLove.Makinom.SceneTargetInstance.SaveGame ( )

Used to save the data - you need to add the data to a GamingIsLove.Makinom.DataObject.

Returns
A GamingIsLove.Makinom.DataObject containing the data.

Implements GamingIsLove.Makinom.ISaveData.