コード例 #1
0
 protected virtual void Awake()
 {
     dataEntityCollection = Service.Get <CPDataEntityCollection>();
     layoutManager        = Service.Get <SceneLayoutDataManager>();
     eventDispatcher      = Service.Get <EventDispatcher>();
     contextListener      = GetComponent <StateMachineContextListener>();
     stateDataListener    = dataEntityCollection.When <SceneStateData>(layoutManager.GetActiveHandle(), onSceneStateData);
     eventChannel         = new EventChannel(eventDispatcher);
 }
 private void Awake()
 {
     objManipulationController   = GetComponent <ObjectManipulationInputController>();
     stateMachineContextListener = GetComponent <StateMachineContextListener>();
     stateMachineContextListener.OnContextAdded += onContextAdded;
 }