コード例 #1
0
 public void SetYnvPortal(YnvPortal ynvPortal)
 {
     YnvPortal = ynvPortal;
     Tag       = ynvPortal;
     UpdateFormTitle();
     UpdateYnvPortalUI();
 }
コード例 #2
0
        public NavPortalRotationUndoStep(YnvPortal portal, Quaternion startrot, WorldForm wf)
        {
            Portal        = portal;
            StartRotation = startrot;
            EndRotation   = portal?.Orientation ?? Quaternion.Identity;

            //UpdateGraphics(wf);
        }
コード例 #3
0
        public NavPortalPositionUndoStep(YnvPortal portal, Vector3 startpos, WorldForm wf)
        {
            Portal        = portal;
            StartPosition = startpos;
            EndPosition   = portal?.Position ?? Vector3.Zero;

            UpdateGraphics(wf); //forces the update of the path graphics when it's moved...
        }