Base class for monobehaviours that can be accessed as a singleton. The singleton is instantiated from the resources folder and should have the same name as the class type.
More...
Base class for monobehaviours that can be accessed as a singleton. The singleton is instantiated from the resources folder and should have the same name as the class type.
- Template Parameters
-
T | The name of the type and name of the prefab inside resources folder |
Example: Using as a base class for PlayerCamera script.
public class PlayerCamera : BoltSingletonPrefab<PlayerCamera> {
Transform _target;
public new Camera camera {
get { return _camera; }
}
}