Ejemplo n.º 1
0
    /**
     * Set whether this fish is stuck from moving on past obstacles in the level
     *
     * @param stuck Is the fish currently stuck or not
     */
    public void SetStuck(bool stuck)
    {
        this.stuck = stuck;
        school.FishKilled(this);

        DeactivateFish();
    }
Ejemplo n.º 2
0
    /**
     * Handle this fish being caught
     */
    public void Catch()
    {
        // remove the fish from the school
        school.FishKilled(this);

        DeactivateFish();
    }