Skip to content

Commit b0e98c7

Browse files
authored
Merge pull request #7 from BroWar-Collective/develop
Develop - 1.2.6
2 parents 5318a63 + 4643d1a commit b0e98c7

6 files changed

Lines changed: 11 additions & 10 deletions

File tree

File renamed without changes.

Assets/Examples/Prefabs/Resources/ProjectContext.prefab.meta renamed to Assets/Examples/Prefabs/ProjectContext.prefab.meta

File renamed without changes.

Assets/Examples/Prefabs/Resources.meta

Lines changed: 0 additions & 8 deletions
This file was deleted.

Assets/Package/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 1.2.6 [27.04.2023]
2+
3+
### Changed:
4+
- Fix enabling ProjectContext in builds
5+
16
## 1.2.5 [12.03.2023]
27

38
### Added:

Assets/Package/Runtime/InjectionManager.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ private void InitializeContext()
4747
instance = Instantiate(projectContextPrefab, ZenUtilInternal.GetOrCreateInactivePrefabParent());
4848
instance.gameObject.SetActive(false);
4949
instance.transform.SetParent(null, false);
50-
instance.gameObject.SetActive(true);
5150
}
5251
else
5352
{
@@ -69,6 +68,11 @@ private void InitializeContext()
6968
ProjectContext.Instance = instance;
7069
instance.name = "Project Context";
7170
instance.Initialize();
71+
72+
if (prefabWasActive)
73+
{
74+
instance.gameObject.SetActive(true);
75+
}
7276
}
7377

7478
/// <inheritdoc />

Assets/Package/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "com.browar.injection",
33
"displayName": "Injection",
4-
"version": "1.2.5",
4+
"version": "1.2.6",
55
"unity": "2018.1",
66
"description": "Dependency Injection system.",
77
"keywords": [

0 commit comments

Comments
 (0)