Пример #1
0
        public override void OnActivate(GameObject activator)
        {
            if (CheckEligibility(activator))
            {
                string spawnPointHack = SpawnPoint;
                if (UsePosition)
                {
                    spawnPointHack = null;
                }
                else if (string.IsNullOrEmpty(SpawnPoint))
                {
                    spawnPointHack = string.Empty;
                }

                WorldUtils.ChangeScene(Scene, spawnPointHack, Position, Rotation);
            }
        }
Пример #2
0
 static void Warp(string scene, Vector3 position, Vector3 rotation)
 {
     WorldUtils.ChangeScene(scene, null, position, rotation);
 }
Пример #3
0
 static void Warp(string scene, string spawnPoint)
 {
     WorldUtils.ChangeScene(scene, spawnPoint, Vector3.zero, Vector3.zero);
 }