-
Notifications
You must be signed in to change notification settings - Fork 786
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
590407e
commit 8e8239d
Showing
88 changed files
with
2,708 additions
and
9,348 deletions.
There are no files selected for viewing
50 changes: 0 additions & 50 deletions
50
Assets/QFramework/Example/LibsExample/CatlibExample/CatlibExample.cs
This file was deleted.
Oops, something went wrong.
208 changes: 0 additions & 208 deletions
208
Assets/QFramework/Example/LibsExample/CatlibExample/CatlibExample.unity
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
...rk/Example/LibsExample/CatlibExample.meta → ...ework/Example/LibsExample/IOCExample.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
30 changes: 30 additions & 0 deletions
30
Assets/QFramework/Example/LibsExample/IOCExample/InjectExample.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using UnityEngine; | ||
|
||
namespace QFramework.Example | ||
{ | ||
public class InjectExample : MonoBehaviour | ||
{ | ||
[Inject] public A AObj; | ||
|
||
// Use this for initialization | ||
void Start() | ||
{ | ||
var container = new QFrameworkContainer(); | ||
container.RegisterInstance(new A()); | ||
container.Inject(this); | ||
|
||
container.Resolve<A>().HelloWorld(); | ||
} | ||
|
||
|
||
public class A | ||
{ | ||
public void HelloWorld() | ||
{ | ||
"This is A obj".LogInfo(); | ||
} | ||
} | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
...ample/CatlibExample/CatlibExample.cs.meta → ...sExample/IOCExample/InjectExample.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
4 changes: 2 additions & 2 deletions
4
...le/CatlibExample/CatlibExample.unity.meta → ...ample/IOCExample/InjectExample.unity.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
{ | ||
"Version": "v0.0.40", | ||
"Version": "v0.0.42", | ||
"Type": 0, | ||
"AccessRight": 0, | ||
"DownloadUrl": null, | ||
"InstallPath": "Assets/QFramework/Example/", | ||
"Readme": { | ||
"version": "v0.0.40", | ||
"content": "support 5.6", | ||
"version": "v0.0.42", | ||
"content": "add IOC Example", | ||
"author": "liangxie", | ||
"date": "2019 年 01 月 25 日 12:39" | ||
"date": "2019 年 01 月 26 日 18:32" | ||
}, | ||
"Name": "Example", | ||
"VersionNumber": 40, | ||
"FileName": "Example_v0.0.40.unitypackage" | ||
"VersionNumber": 42, | ||
"FileName": "Example_v0.0.42.unitypackage" | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
{ | ||
"Version": "v0.0.5", | ||
"Version": "v0.1.0", | ||
"Type": 0, | ||
"AccessRight": 0, | ||
"DownloadUrl": null, | ||
"InstallPath": "Assets/QFramework/Framework/0.Core/", | ||
"Readme": { | ||
"version": "v0.0.5", | ||
"content": "support 5.6", | ||
"version": "v0.1.0", | ||
"content": "import uFrame's IOC Solution", | ||
"author": "liangxie", | ||
"date": "2019 年 01 月 25 日 12:40" | ||
"date": "2019 年 01 月 26 日 18:27" | ||
}, | ||
"Name": "0.Core", | ||
"VersionNumber": 5, | ||
"FileName": "0.Core_v0.0.5.unitypackage" | ||
"VersionNumber": 100, | ||
"FileName": "0.Core_v0.1.0.unitypackage" | ||
} |
21 changes: 0 additions & 21 deletions
21
Assets/QFramework/Framework/0.Core/Plugins/CatLib.Core/LICENSE
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
Assets/QFramework/Framework/0.Core/Plugins/CatLib.Core/LICENSE.meta
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.