public void SetSourceValid()
        {
            TransformData source = new TransformData(sourceObject);

            Assert.IsNull(subject.source);
            subject.SetSource(source);
            Assert.AreEqual(source, subject.source);
        }
示例#2
0
        /// <summary>
        /// Attempts to teleport the <see cref="playAreaAlias"/>.
        /// </summary>
        /// <param name="destination">The location to attempt to teleport to.</param>
        public virtual void Teleport(TransformData destination)
        {
            if (surfaceTeleporter != null)
            {
                surfaceTeleporter.Locate(destination);
            }

            if (modifyTeleporter != null)
            {
                modifyTeleporter.SetSource(destination);
                modifyTeleporter.Apply();
            }
        }