コード例 #1
0
        public static void MaximizeInterface(string interfaceName)
        {
            PrimaryInterface primaryInterface = null;

            if (mInterfaceLookup.TryGetValue(interfaceName, out primaryInterface))
            {
                primaryInterface.Maximize();
            }
        }
コード例 #2
0
        public static void MaximizeInterface(string interfaceName, string functionName)
        {
            PrimaryInterface primaryInterface = null;

            if (mInterfaceLookup.TryGetValue(interfaceName, out primaryInterface))
            {
                primaryInterface.Maximize();
                primaryInterface.SendMessage(functionName, SendMessageOptions.DontRequireReceiver);
            }
        }
コード例 #3
0
        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);
            }
        }