コード例 #1
0
 public static void Jump()
 {
     if (GameState.s_playerCharacter.IsMouseOnWalkMesh())
     {
         foreach (var partymember in PartyMemberAI.GetSelectedPartyMembers())
         {
             partymember.transform.position = GameInput.WorldMousePosition;
         }
     }
     else
     {
         global::Console.AddMessage("Mouse is not on navmesh.");
     }
 }
コード例 #2
0
        /// <summary>
        /// Unlocks Container under cursor
        /// </summary>
        public static void Unlock()
        {
            GameObject underCursor = GameCursor.GenericUnderCursor;
            OCL        container   = underCursor.GetComponent <OCL>();

            List <GameObject>        partyMembers = PartyMemberAI.GetSelectedPartyMembers();
            IEnumerator <GameObject> enumerator   = partyMembers.GetEnumerator();

            try
            {
                enumerator.MoveNext();
                if (container)
                {
                    container.Unlock(enumerator.Current);
                }
            }
            finally
            {
                if (enumerator == null)
                {
                }
                enumerator.Dispose();
            }
        }