public Data(string resourcePath, GameManager.SerializableVector3 position, GameManager.SerializableQuaternion rotation, GameManager.World.Realm realm, Dictionary <string, string> data) { this.resourcePath = resourcePath; this.position = position; this.rotation = rotation; this.realm = realm; this.data = data; }
public virtual void Play(GameManager.World.Realm realm, bool fade = false) { scene = Scene.Space; if (fade) { faderAnimator.gameObject.SetActive(true); faderAnimator.SetInteger("Scene ID", (int)realm); Fade(); } else { faderAnimator.gameObject.SetActive(false); StartCoroutine(LoadSceneAsync((int)realm)); } }
public Data(string resourcePath, GameManager.SerializableVector3 position, GameManager.SerializableQuaternion rotation, GameManager.World.Realm realm, params KeyValuePair <string, string>[] data) { this.resourcePath = resourcePath; this.position = position; this.rotation = rotation; this.realm = realm; this.data = new Dictionary <string, string>(); foreach (KeyValuePair <string, string> pair in data) { this.data.Add(pair.Key, pair.Value); } }