Exemplo n.º 1
0
        /// @param localDirector
        ///     The local director owner of the Controller
        /// @param sceneView
        ///     The view component of the scene
        /// @param exitSceneID
        ///     The ID of the scene to exit to
        ///
        public SceneFSMController(LocalDirector localDirector, SceneFSMView sceneView, string exitSceneID = "")
            : base(localDirector, sceneView)
        {
            m_sceneView   = sceneView;
            m_exitSceneID = exitSceneID;

            m_audioService = GlobalDirector.Service <AudioService>();
            m_inputService = GlobalDirector.Service <InputService>();
            m_sceneService = GlobalDirector.Service <SceneService>();
        }
Exemplo n.º 2
0
 /// Used to complete the initialisation in case the service depends
 /// on other Services
 ///
 public override void OnCompleteInitialisation()
 {
     m_sceneService = GlobalDirector.Service <SceneService>();
 }