void SetDestination() { // Maybe turn this into a coroutine so we can pause at the start if we're at a bank or distraction _destinationIndex++; RadialNode nextDestination = _path.GetNode(_destinationIndex); if (nextDestination == null) { OnExitReached?.Invoke(); return; } Vector3 randomPoint = nextDestination.RadialPosition; _ai.destination = randomPoint; _ai.SearchPath(); }
public FishRadialNN(int x, int y) : base(x, y) { this._nn = new RadialNetwork(25); this._lightR = this._nn.AddOutput(); this._lightG = this._nn.AddOutput(); this._lightB = this._nn.AddOutput(); this._eyeR = this._nn.AddInput(); this._eyeG = this._nn.AddInput(); this._eyeB = this._nn.AddInput(); this._speed = this._nn.AddOutput(); this._rotation = this._nn.AddOutput(); this._proximity = this._nn.AddInput(); this.X = x; this.Y = y; }