void OnEnable() { instance = this; mTarget = target as HotspotButtonGaze; posCalc = mTarget.GetComponent <HotspotPositionCalc>(); posCalcSO = new SerializedObject(posCalc); }
void OnDisable() { instance = null; }