@@ -64,7 +64,7 @@ Use build in file generator to create new instances for any of these types.
6464abstract class Controller {
6565
6666 /// A reference to the controller.
67- static Controller Instance ;
67+ static Controller Instance { get ; } ;
6868
6969 /// Method invoked when the controller is initializing.
7070 virtual void OnInitialize ();
@@ -109,6 +109,7 @@ abstract class EntityComponent<EntityComponentType, EntitySystemType> : UnityEng
109109
110110 /// Defines whether this component is enabled.
111111 bool isEnabled { get ; };
112+
112113 /// Sets the game object of the entity active.
113114 void SetActive (bool value );
114115 /// Destroys the game object of the entity.
@@ -117,7 +118,6 @@ abstract class EntityComponent<EntityComponentType, EntitySystemType> : UnityEng
117118 void AddAsset (UnityEngine.Object asset );
118119 /// Loads a asset from the controller and adds it as an asset to the entity.
119120 void AddAsset (string name );
120-
121121 /// Sets the position of an entity.
122122 void SetPosition (float x , float y , float z = 0 );
123123 /// Adds to the position of an entity.
@@ -149,15 +149,15 @@ abstract class EntitySystem<EntitySystemType, EntityComponentType> : IEntitySyst
149149 where EntityComponentType : EntityComponent <EntityComponentType , EntitySystemType >, new () {
150150
151151 /// An instance reference to the controller.
152- static EntitySystemType Instance ;
152+ static EntitySystemType Instance { get ; } ;
153153 /// A list of the system's instantiated entity components.
154- System.Collections.Generic.List <EntityComponentType > entities ;
154+ System.Collections.Generic.List <EntityComponentType > entities { get ; } ;
155155 /// The first instantiated entity compoent if this system.
156- EntityComponentType entity ;
156+ EntityComponentType entity { get ; } ;
157157 /// Defines the number of instantiated entity components this system has.
158- int entityCount ;
158+ int entityCount { get ; } ;
159159 /// Defines whether the system has instantiated entity components.
160- bool hasEntities ;
160+ bool hasEntities { get ; } ;
161161
162162 /// Method invoked when the system will initialize.
163163 virtual void OnInitialize ();
@@ -230,7 +230,7 @@ abstract class Service<ServiceType> : IService
230230 where ServiceType : Service <ServiceType >, new () {
231231
232232 /// An instance reference to the service.
233- static ServiceType Instance ;
233+ static ServiceType Instance { get ; } ;
234234
235235 /// Method invoked when the service will initialize.
236236 virtual void OnInitialize ();
0 commit comments