Beispiel #1
0
        /// <inheritdoc />
        /// <summary>
        /// </summary>
        protected override void Clear()
        {
            if (!this._goal)
            {
                this._goal = FindObjectOfType <Transform>();
            }

            if (!this._actor)
            {
                this._actor = FindObjectOfType <Actor>();
            }

            if (!this._environment)
            {
                this._environment = FindObjectOfType <PrototypingEnvironment>();
            }

            if (this._obstructions.Length <= 0)
            {
                this._obstructions = FindObjectsOfType <Obstruction>();
            }

            if (!this._playable_area)
            {
                this._playable_area = FindObjectOfType <BoundingBox>();
            }
        }
Beispiel #2
0
 void Awake()
 {
     if (!this._env)
     {
         this._env = FindObjectOfType <PrototypingEnvironment>();
     }
 }
Beispiel #3
0
        void Awake()
        {
            foreach (var go in this._extra_terms)
            {
                this.Register(go);
            }

            if (!this.ParentEnvironment)
            {
                this.ParentEnvironment = FindObjectOfType <PrototypingEnvironment> ();
            }
        }
Beispiel #4
0
 protected virtual void RegisterComponent()
 {
     this._environment = NeodroidUtilities.MaybeRegisterComponent(this._environment, this);
 }