コード例 #1
0
 // Use this for initialization
 void Start()
 {
     cameraRayCaster = GetComponent <CameraRaycaster>();
     if (cameraRayCaster != null)
     {
         cameraRayCaster.notifyLayerChangeObservers += OnLayerChanged;
     }
 }
コード例 #2
0
 // Use this for initialization
 void Start()
 {
     cameraRaycaster = GetComponent <CameraRaycaster>();
     cameraRaycaster.notifyLayerChangeObservers += OnLayerChanged; // registering
 }
コード例 #3
0
 void Awake()
 {
     cameraRaycaster = GetComponent <CameraRaycaster>();
     cameraRaycaster.layerChangeObservers += OnDelegateCalled; //registering
 }
コード例 #4
0
 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;
 }