示例#1
0
 public void OutsideHardBounds(HardBoundary boundary)
 {
     this.HardBoundaries.Remove(boundary);
     if (this.HardBoundaries.Count <= 0)
     {
         this.IsOutsideHardBounds = true;
     }
 }
示例#2
0
    public void InsideHardBounds(HardBoundary boundary)
    {
        this.HardBoundaries.Add(boundary);
        this.LastHardBoundary = boundary;

        // If this fish just returned from being out of bounds
        if (this.IsOutsideHardBounds)
        {
            // TODO : Direct fishies more inward, otherwise they stay along the boundary edge

            this.IsOutsideHardBounds = false;
        }
    }