Пример #1
0
 // 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
 }
Пример #3
0
 void Awake()
 {
     cameraRaycaster = GetComponent <CameraRaycaster>();
     cameraRaycaster.layerChangeObservers += OnDelegateCalled; //registering
 }
 void Awake()
 {
     cameraRaycaster = GetComponent <CameraRaycaster>();
 }
Пример #5
0
 // Use this for initialization
 void Awake()
 {
     cameraRaycaster = GetComponent <CameraRaycaster>();
     //cameraRaycaster.layerChangeObservers += SomeHandlingFunction;
 }
Пример #6
0
 // Use this for initialization
 void Start()
 {
     CameraRaycaster = GetComponent <CameraRaycaster>();
     CameraRaycaster.notifyLayerChangeObservers += OnLayerChange;
 }