Ejemplo n.º 1
0
    public void SetAnim(bool set)
    {
        if (b_type != BlockType.MOVEABLE)
        {
            return;
        }
        Animator sr = coord_obj.GetComponentInChildren <Animator>();

        sr.ResetTrigger("try");
        if (set)
        {
            sr.SetTrigger("try");
        }
    }