void Setup() { if (!this._goal) { this._goal = FindObjectOfType <EmptyCell> (); } if (!this._actor) { this._actor = FindObjectOfType <Actor> (); } if (this._goal) { NeodroidUtilities.RegisterCollisionTriggerCallbacksOnChildren( this, this._goal.transform, null, on_trigger_enter_child: this.OnTriggerEnterChild, debug: this.Debugging); } if (this._actor) { NeodroidUtilities.RegisterCollisionTriggerCallbacksOnChildren( this, this._actor.transform, null, on_trigger_enter_child: this.OnTriggerEnterChild, debug: this.Debugging); } }
public void SetGoal(EmptyCell goal) { this._goal = goal; this.InternalReset(); }