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."); } }
/// <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(); } }