Click or drag to resize

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

Parameters

obj
Type: MonoBehaviour
Object
instance
Type: T
Singleton reference

Type Parameters

T
Type of object
See Also