공용 코드를 위한 어셈블리 정의
This commit is contained in:
@@ -6,6 +6,6 @@ public static class CustomMenuItemDefinition
|
|||||||
[MenuItem("Custom/Print log")]
|
[MenuItem("Custom/Print log")]
|
||||||
private static void PringLog()
|
private static void PringLog()
|
||||||
{
|
{
|
||||||
Debug.Log("Hello, world!");
|
Debug.Log($"Hello, world! - {SharedFunctions.Add(1, 2)}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
8
Assets/Scripts/Shared.meta
Normal file
8
Assets/Scripts/Shared.meta
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 9dc82bdced3647847a169188831ec1c5
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
16
Assets/Scripts/Shared/Shared.asmdef
Normal file
16
Assets/Scripts/Shared/Shared.asmdef
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
"name": "Shared",
|
||||||
|
"rootNamespace": "",
|
||||||
|
"references": [],
|
||||||
|
"includePlatforms": [],
|
||||||
|
"excludePlatforms": [],
|
||||||
|
"allowUnsafeCode": false,
|
||||||
|
"overrideReferences": false,
|
||||||
|
"precompiledReferences": [
|
||||||
|
""
|
||||||
|
],
|
||||||
|
"autoReferenced": true,
|
||||||
|
"defineConstraints": [],
|
||||||
|
"versionDefines": [],
|
||||||
|
"noEngineReferences": true
|
||||||
|
}
|
||||||
7
Assets/Scripts/Shared/Shared.asmdef.meta
Normal file
7
Assets/Scripts/Shared/Shared.asmdef.meta
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 468683a954ef15845ab7b27af1c5bd0b
|
||||||
|
AssemblyDefinitionImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
7
Assets/Scripts/Shared/SharedFunctions.cs
Normal file
7
Assets/Scripts/Shared/SharedFunctions.cs
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
public static class SharedFunctions
|
||||||
|
{
|
||||||
|
public static int Add(int a, int b)
|
||||||
|
{
|
||||||
|
return a + b;
|
||||||
|
}
|
||||||
|
}
|
||||||
2
Assets/Scripts/Shared/SharedFunctions.cs.meta
Normal file
2
Assets/Scripts/Shared/SharedFunctions.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 436971c18a04611498a0f659337593e8
|
||||||
Reference in New Issue
Block a user