Пример #1
0
        /// <summary>
        /// Function to create the engine instance of the shape. The engine instance is of type EngineInstanceFmodSound
        /// and located in the managed code library.
        /// </summary>
        /// <param name="bCreateChildren">relevant for the base class to create instances for children</param>
        public override void CreateEngineInstance(bool bCreateChildren)
        {
            _engineInstance = new EngineInstanceFmodSound();
            SetEngineInstanceBaseProperties(); // sets the position etc.

            // Call the base function to setup attachments and process the children. The engine instance
            // has to exist at this point.
            base.CreateEngineInstance(bCreateChildren);
        }
Пример #2
0
        /// <summary>
        /// Function to create the engine instance of the shape. The engine instance is of type EngineInstanceFmodSound
        /// and located in the managed code library.
        /// </summary>
        /// <param name="bCreateChildren">relevant for the base class to create instances for children</param>
        public override void CreateEngineInstance(bool bCreateChildren)
        {
            _engineInstance = new EngineInstanceFmodSound();
              SetEngineInstanceBaseProperties(); // sets the position etc.

              // Call the base function to setup attachments and process the children. The engine instance
              // has to exist at this point.
              base.CreateEngineInstance(bCreateChildren);
        }