コード例 #1
0
        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();
            }
        }