public static void MaximizeInterface(string interfaceName) { PrimaryInterface primaryInterface = null; if (mInterfaceLookup.TryGetValue(interfaceName, out primaryInterface)) { primaryInterface.Maximize(); } }
public static void MaximizeInterface(string interfaceName, string functionName) { PrimaryInterface primaryInterface = null; if (mInterfaceLookup.TryGetValue(interfaceName, out primaryInterface)) { primaryInterface.Maximize(); primaryInterface.SendMessage(functionName, SendMessageOptions.DontRequireReceiver); } }
public static void MaximizeInterface(string interfaceName, string functionName, GameObject sendToItem) { PrimaryInterface primaryInterface = null; if (mInterfaceLookup.TryGetValue(interfaceName, out primaryInterface)) { primaryInterface.Maximize(); primaryInterface.SendMessage(functionName, sendToItem, SendMessageOptions.DontRequireReceiver); } else { Debug.Log("Couldn't find interface " + interfaceName); } }