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