Beispiel #1
0
        /// <inheritdoc />
        /// <summary>
        /// </summary>
        protected sealed override void Setup()
        {
            //foreach (var go in this._extra_terms_external)
            //  this.Register(go);

            if (this.ParentEnvironment == null)
            {
                this.ParentEnvironment = FindObjectOfType <PrototypingEnvironment>();
            }

            this.PostSetup();
        }
Beispiel #2
0
        /// <inheritdoc />
        ///  <summary>
        ///  </summary>
        protected override void RegisterComponent()
        {
            this._Parent_Environment = NeodroidUtilities.MaybeRegisterComponent(
                (PrototypingEnvironment)this._Parent_Environment,
                this);

            if (this._Parent_Environment != null)
            {
                this._Parent_Environment.PreStepEvent  += this.PreStep;
                this._Parent_Environment.StepEvent     += this.Step;
                this._Parent_Environment.PostStepEvent += this.PostStep;
            }
        }
Beispiel #3
0
        /// <inheritdoc />
        /// <summary>
        /// </summary>
        protected override void RegisterComponent()
        {
            this.ParentActor = NeodroidUtilities.RegisterComponent(
                (Actor)this.ParentActor,
                (Motor)this,
                this._movement);
            this.ParentActor = NeodroidUtilities.RegisterComponent(
                (Actor)this.ParentActor,
                (Motor)this,
                this._turn);

            this._parent_environment = NeodroidUtilities.RegisterComponent(
                (PrototypingEnvironment)this._parent_environment,
                this);

            if (this._parent_environment != null)
            {
                this._parent_environment.PreStepEvent  += this.PreStep;
                this._parent_environment.StepEvent     += this.Step;
                this._parent_environment.PostStepEvent += this.PostStep;
            }
        }
Beispiel #4
0
 /// <inheritdoc />
 /// <summary>
 /// </summary>
 protected override void RegisterComponent()
 {
     this._Parent_Environment = NeodroidUtilities.RegisterComponent(
         (PrototypingEnvironment)this._Parent_Environment,
         this);
 }