Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
 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));
     }
 }
Ejemplo n.º 3
0
        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);
            }
        }