/// <summary>
    /// This is called when one of our hitboxes collides with something while we're attacking.
    /// </summary>
    /// <param name="collision">Collision, the collision that took place</param>
    void hitBoxCollisionEnter(Collision collision)
    {
        //If we hit ourself some how...
        if (collision.gameObject.transform == this.transform)
        {
            return;
        }


        if (currentState == ChickenState.Dashing && dashingDirection == Vector3.forward)
        {
            ChickenControlBehavior otherChicken = collision.gameObject.GetComponent <ChickenControlBehavior>();

            if (otherChicken != null && (otherChicken.team != team || otherChicken.team == ChickenTeam.None))             //added here disables friendly fire

            {
                if (otherChicken.gameObject.GetComponent <NetworkChickenCharacter>() != null)
                {
                    SpecialEffectsFactory.createEffect(otherChicken.gameObject.transform.position, SpecialEffectType.TakeDamage);
                    otherChicken.gameObject.GetComponent <PhotonView>().RPC("takeDamage", otherChicken.gameObject.GetComponent <PhotonView>().owner, power);
                    //otherChicken.gameObject.GetComponent<PhotonView>().RPC("takeDamage",PhotonTargets.All,power);
                }
                else
                {
                    otherChicken.takeDamage(power);
                }
            }
            else if (collision.transform.tag == "Hitbox")
            {
                //play a ting noise like in smashbros.
            }

            stopDashing();
        }
    }
    void takeDamage(int amount)
    {
        ChickenControlBehavior chicken = gameObject.GetComponent <ChickenControlBehavior> ();

        if (chicken != null)
        {
            chicken.takeDamage(amount);
        }
    }