Initial Commit
This commit is contained in:
+23
@@ -0,0 +1,23 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace Zenject.Tests.Bindings.DiContainerMethods
|
||||
{
|
||||
public interface IFoo
|
||||
{
|
||||
}
|
||||
|
||||
public class Foo : MonoBehaviour, IFoo
|
||||
{
|
||||
public bool WasInjected
|
||||
{
|
||||
get;
|
||||
private set;
|
||||
}
|
||||
|
||||
[Inject]
|
||||
public void Construct()
|
||||
{
|
||||
WasInjected = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 576295a2c4f9589448e9441994df8491
|
||||
timeCreated: 1486605381
|
||||
licenseType: Free
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace Zenject.Tests.Bindings.DiContainerMethods
|
||||
{
|
||||
//[CreateAssetMenu(fileName = "Foo2", menuName = "Test/Foo2")]
|
||||
public class Foo2 : ScriptableObject
|
||||
{
|
||||
public bool WasInjected
|
||||
{
|
||||
get;
|
||||
private set;
|
||||
}
|
||||
|
||||
[Inject]
|
||||
public void Construct()
|
||||
{
|
||||
WasInjected = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2fb66836df088014081bc2f5740ecea1
|
||||
timeCreated: 1486677525
|
||||
licenseType: Free
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
using ModestTree;
|
||||
using UnityEngine;
|
||||
|
||||
#pragma warning disable 649
|
||||
|
||||
namespace Zenject.Tests.Bindings.DiContainerMethods
|
||||
{
|
||||
public class Gorp : MonoBehaviour
|
||||
{
|
||||
[Inject]
|
||||
string _arg;
|
||||
|
||||
public string Arg
|
||||
{
|
||||
get { return _arg; }
|
||||
}
|
||||
|
||||
[Inject]
|
||||
public void Initialize()
|
||||
{
|
||||
Log.Trace("Received arg '{0}' in Gorp", _arg);
|
||||
}
|
||||
}
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 33197ae07a0a36e41bf9fa09aa8d0ce6
|
||||
timeCreated: 1486605381
|
||||
licenseType: Free
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
using ModestTree;
|
||||
using UnityEngine;
|
||||
|
||||
#pragma warning disable 649
|
||||
|
||||
namespace Zenject.Tests.Bindings.DiContainerMethods
|
||||
{
|
||||
//[CreateAssetMenu(fileName = "Gorp2", menuName = "Test/Gorp2")]
|
||||
public class Gorp2 : ScriptableObject
|
||||
{
|
||||
[Inject]
|
||||
string _arg;
|
||||
|
||||
public string Arg
|
||||
{
|
||||
get { return _arg; }
|
||||
}
|
||||
|
||||
[Inject]
|
||||
public void Initialize()
|
||||
{
|
||||
Log.Trace("Received arg '{0}' in Gorp", _arg);
|
||||
}
|
||||
}
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 952b7cab572c9c24cb1e7ca240e67c84
|
||||
timeCreated: 1486677525
|
||||
licenseType: Free
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user