GlobalGameObject

class GlobalGameObject : GlobalVariableBase<GameObject>

A GlobalVariable representing a GameObject.

Methods

bool TrySetValue(GameObject gameObject)

Tries to set the value to the passed GameObject. It's the same as setting the value, but returns false instead of raising an exception if it fails. This method is meant to be overriden by GlobalGameObjectWithComponentCacheBase.