WeatherMakerScriptEnsureInstanceT Method |
Ensures that an object is the correct singleton for itself
Namespace:
DigitalRuby.WeatherMaker
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax public static void EnsureInstance<T>(
MonoBehaviour obj,
ref T instance
)
where T : MonoBehaviour
Public Shared Sub EnsureInstance(Of T As MonoBehaviour) (
obj As MonoBehaviour,
ByRef instance As T
)
public:
generic<typename T>
where T : MonoBehaviour
static void EnsureInstance(
MonoBehaviour^ obj,
T% instance
)
static member EnsureInstance :
obj : MonoBehaviour *
instance : 'T byref -> unit when 'T : MonoBehaviour
Parameters
- obj
- Type: MonoBehaviour
Object - instance
- Type: T
Singleton reference
Type Parameters
- T
- Type of object
See Also