void OnDestroy() { if (LocalInstance == this) { LocalInstance = null; } }
public override void OnStartLocalPlayer() { LocalInstance = this; foreach (var renderer in GetComponentsInChildren <Renderer>()) { renderer.enabled = false; } }
void Awake() { instance = this; }