// Use this for initialization void Start() { cameraRayCaster = GetComponent <CameraRaycaster>(); if (cameraRayCaster != null) { cameraRayCaster.notifyLayerChangeObservers += OnLayerChanged; } }
// Use this for initialization void Start() { cameraRaycaster = GetComponent <CameraRaycaster>(); cameraRaycaster.notifyLayerChangeObservers += OnLayerChanged; // registering }
void Awake() { cameraRaycaster = GetComponent <CameraRaycaster>(); cameraRaycaster.layerChangeObservers += OnDelegateCalled; //registering }
void Awake() { cameraRaycaster = GetComponent <CameraRaycaster>(); }
// Use this for initialization void Awake() { cameraRaycaster = GetComponent <CameraRaycaster>(); //cameraRaycaster.layerChangeObservers += SomeHandlingFunction; }
// Use this for initialization void Start() { CameraRaycaster = GetComponent <CameraRaycaster>(); CameraRaycaster.notifyLayerChangeObservers += OnLayerChange; }