/// <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>(); } }
void Awake() { if (!this._env) { this._env = FindObjectOfType <PrototypingEnvironment>(); } }
void Awake() { foreach (var go in this._extra_terms) { this.Register(go); } if (!this.ParentEnvironment) { this.ParentEnvironment = FindObjectOfType <PrototypingEnvironment> (); } }
protected virtual void RegisterComponent() { this._environment = NeodroidUtilities.MaybeRegisterComponent(this._environment, this); }