void Awake() { regions = new List <Region>(); importDock = null; exportDock = null; coast = null; #region clickable InteractableViaClickTouch ict = gameObject.GetComponent <InteractableViaClickTouch>(); if (ict == null) { ict = gameObject.AddComponent <InteractableViaClickTouch>(); } ict.handleActivationDeactivation.Add(handleActivationDeactivation); #endregion #region PdaInspectable PdaInspectable pi = gameObject.GetComponent <PdaInspectable>(); if (pi == null) { pi = gameObject.AddComponent <PdaInspectable>(); } #endregion }
void Awake() { #region clickable InteractableViaClickTouch ict = gameObject.GetComponent <InteractableViaClickTouch>(); if (ict == null) { ict = gameObject.AddComponent <InteractableViaClickTouch>(); } ict.handleActivationDeactivation.Add(handleActivationDeactivation); #endregion #region PdaInspectable PdaInspectable pi = gameObject.GetComponent <PdaInspectable>(); if (pi == null) { pi = gameObject.AddComponent <PdaInspectable>(); } #endregion }