Skip to content

Commit aa0be8c

Browse files
Minor fixes in protection layer
1 parent d57292e commit aa0be8c

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Runtime/EntityComponent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public void AddLocalScale (float x, float y, float z) =>
119119

120120
/// During the 'InteralOnUpdate' the entity component will invoke its
121121
/// 'OnEntityEnabled' and 'OnEntityInitialized' if needed.
122-
internal void Internal_OnUpdate () {
122+
public void Internal_OnUpdate () {
123123
if (this.isInitialized == false) {
124124
this.isInitialized = true;
125125
this.GetSystem ().OnEntityInitialized ((EntityComponentType)this);

Runtime/EntitySystem.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,11 @@ public void SetEnabled (bool value) =>
134134

135135
/// Internal method to set the instance reference. This method will
136136
/// be called after the controller and system initialization.
137-
internal void Internal_OnInitialize () =>
137+
public void Internal_OnInitialize () =>
138138
Instance = Controller.Instance.GetSystem<EntitySystemType> ();
139139

140140
/// Internal method to update the children of the system.
141-
internal void Internal_OnUpdate () {
141+
public void Internal_OnUpdate () {
142142
if (this.isInitialized == false) {
143143
this.OnInitialized ();
144144
if (Controller.Instance.IsSystemEnabled<EntitySystemType> () == true)
@@ -150,7 +150,7 @@ internal void Internal_OnUpdate () {
150150
}
151151

152152
/// Internal method to add an entity's component to this system.
153-
internal void Internal_AddEntity (EntityComponentType component) {
153+
public void Internal_AddEntity (EntityComponentType component) {
154154
if (this.hasEntities == false)
155155
this.entity = component;
156156
this.entityCount++;
@@ -160,7 +160,7 @@ internal void Internal_AddEntity (EntityComponentType component) {
160160
}
161161

162162
/// Internal method to remove an entity's component from this system.
163-
internal void Internal_RemoveEntry (EntityComponentType component) {
163+
public void Internal_RemoveEntry (EntityComponentType component) {
164164
this.entityCount--;
165165
this.hasEntities = this.entityCount > 0;
166166
this.OnEntityWillDestroy (component);

Runtime/Service.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ public void StopCoroutine (System.Collections.IEnumerator routine) =>
3838

3939
/// Internal method to set the instance reference. This method will
4040
/// be called after the controller and system initialization.
41-
internal void Internal_OnInitialize () =>
41+
public void Internal_OnInitialize () =>
4242
Instance = Controller.Instance.GetService<ServiceType> ();
4343

4444
/// Internal method to update the service.
45-
internal void Internal_OnUpdate () {
45+
public void Internal_OnUpdate () {
4646
if (this.isInitialized == false) {
4747
this.OnInitialized ();
4848
this.isInitialized = true;

0 commit comments

Comments
 (0)